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/protocol/bahamut.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/protocol/bahamut.c')
| -rw-r--r-- | src/protocol/bahamut.c | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/src/protocol/bahamut.c b/src/protocol/bahamut.c index d3c92df86..4462ee4eb 100644 --- a/src/protocol/bahamut.c +++ b/src/protocol/bahamut.c @@ -129,9 +129,7 @@ void bahamut_cmd_capab() call on this function */ void bahamut_cmd_chghost(const char *nick, const char *vhost) { - if (debug) { - alog("debug: This IRCD does not support vhosting"); - } + Alog(LOG_DEBUG) << "This IRCD does not support vhosting"; } @@ -408,8 +406,7 @@ int anope_event_sjoin(const char *source, int ac, const char **av) User *u = finduser(source); if (!u) { - if (debug) - alog("debug: SJOIN for nonexistant user %s on %s", source, c->name.c_str()); + Alog(LOG_DEBUG) << "SJOIN for nonexistant user " << source << " on " << c->name; } else { @@ -449,7 +446,7 @@ int anope_event_sjoin(const char *source, int ac, const char **av) ChannelMode *cm = ModeManager::FindChannelModeByChar(ch); if (!cm) { - alog("Recieved unknown mode prefix %c in SJOIN string", buf[0]); + Alog() << "Recieved unknown mode prefix " << buf[0] << " in SJOIN string"; continue; } @@ -459,8 +456,7 @@ int anope_event_sjoin(const char *source, int ac, const char **av) User *u = finduser(buf); if (!u) { - if (debug) - alog("debug: SJOIN for nonexistant user %s on %s", buf.c_str(), c->name.c_str()); + Alog(LOG_DEBUG) << "SJOIN for nonexistant user " << buf << " on " << c->name; continue; } @@ -743,11 +739,8 @@ int anope_event_ping(const char *source, int ac, const char **av) int anope_event_error(const char *source, int ac, const char **av) { - if (ac >= 1) { - if (debug) { - alog("debug: %s", av[0]); - } - } + if (ac >= 1) + Alog(LOG_DEBUG) << av[0]; return MOD_CONT; } |
