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/modules/cs_enforce.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/modules/cs_enforce.c')
-rw-r--r-- | src/modules/cs_enforce.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/modules/cs_enforce.c b/src/modules/cs_enforce.c index 39d936bca..9d752cd36 100644 --- a/src/modules/cs_enforce.c +++ b/src/modules/cs_enforce.c @@ -59,8 +59,7 @@ class CommandCSEnforce : public Command if (!(ci = c->ci)) return; - if (debug) - alog("debug: cs_enforce: Enforcing SECUREOPS on %s", c->name.c_str()); + Alog(LOG_DEBUG) << "[cs_enforce] Enforcing SECUREOPS on " << c->name; /* Dirty hack to allow chan_set_correct_modes to work ok. * We pretend like SECUREOPS is on so it doesn't ignore that @@ -98,8 +97,7 @@ class CommandCSEnforce : public Command if (!(ci = c->ci)) return; - if (debug) - alog("debug: cs_enforce: Enforcing RESTRICTED on %s", c->name.c_str()); + Alog(LOG_DEBUG) << "[cs_enforce] Enforcing RESTRICTED on " << c->name; old_nojoin_level = ci->levels[CA_NOJOIN]; if (ci->levels[CA_NOJOIN] < 0) @@ -131,8 +129,7 @@ class CommandCSEnforce : public Command if (!(ci = c->ci)) return; - if (debug) - alog("debug: cs_enforce: Enforcing mode +R on %s", c->name.c_str()); + Alog(LOG_DEBUG) << "[cs_enforce] Enforcing mode +R on " << c->name; for (CUserList::iterator it = c->users.begin(); it != c->users.end();) { |