diff options
author | DukePyrolator <DukePyrolator@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-31 06:15:29 +0000 |
---|---|---|
committer | DukePyrolator <DukePyrolator@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-31 06:15:29 +0000 |
commit | aa4b3e256377030d291fc2d5f4db94985ce04395 (patch) | |
tree | 993302c0cbe754612f69c22bbbc57d00220cabd4 /src/core/cs_set.c | |
parent | 47504c9de5accda45a19627fd2b6ec13baa6ba95 (diff) |
replaced the alog() command with a new type-safe and stream-based Alog()
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2777 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/cs_set.c')
-rw-r--r-- | src/core/cs_set.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/src/core/cs_set.c b/src/core/cs_set.c index 158987acd..2d8981072 100644 --- a/src/core/cs_set.c +++ b/src/core/cs_set.c @@ -42,9 +42,8 @@ class CommandCSSet : public Command return MOD_CONT; } - alog("%s: Changing founder of %s from %s to %s by %s!%s@%s", - Config.s_ChanServ, ci->name.c_str(), ci->founder->display, nc->display, u->nick.c_str(), - u->GetIdent().c_str(), u->host); + Alog() << Config.s_ChanServ << ": Changing founder of " << ci->name << " from " << ci->founder->display + << " to " << nc->display << " by " << u->GetMask(); /* Founder and successor must not be the same group */ if (nc == ci->successor) @@ -88,10 +87,9 @@ class CommandCSSet : public Command else nc = NULL; - alog("%s: Changing successor of %s from %s to %s by %s!%s@%s", - Config.s_ChanServ, ci->name.c_str(), - (ci->successor ? ci->successor->display : "none"), - (nc ? nc->display : "none"), u->nick.c_str(), u->GetIdent().c_str(), u->host); + Alog() << Config.s_ChanServ << ": Changing successor of " << ci->name << " from " + << (ci->successor ? ci->successor->display : "none") + << " to " << (nc ? nc->display : "none") << " by " << u->GetMask(); ci->successor = nc; @@ -500,16 +498,14 @@ class CommandCSSet : public Command ci->SetFlag(CI_XOP); } - alog("%s: %s!%s@%s enabled XOP for %s", Config.s_ChanServ, u->nick.c_str(), - u->GetIdent().c_str(), u->host, ci->name.c_str()); + Alog() << Config.s_ChanServ << ": " << u->GetMask() << " enabled XOP for " << ci->name; notice_lang(Config.s_ChanServ, u, CHAN_SET_XOP_ON, ci->name.c_str()); } else if (param == "OFF") { ci->UnsetFlag(CI_XOP); - alog("%s: %s!%s@%s disabled XOP for %s", Config.s_ChanServ, u->nick.c_str(), - u->GetIdent().c_str(), u->host, ci->name.c_str()); + Alog() << Config.s_ChanServ << ": " << u->GetMask() << " disabled XOP for " << ci->name; notice_lang(Config.s_ChanServ, u, CHAN_SET_XOP_OFF, ci->name.c_str()); } else |