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/inspircd11.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/inspircd11.c')
| -rw-r--r-- | src/protocol/inspircd11.c | 58 |
1 files changed, 24 insertions, 34 deletions
diff --git a/src/protocol/inspircd11.c b/src/protocol/inspircd11.c index 85612f010..ffd34cb8f 100644 --- a/src/protocol/inspircd11.c +++ b/src/protocol/inspircd11.c @@ -446,8 +446,7 @@ int anope_event_fmode(const char *source, int ac, const char **av) if (n != 1) { newav[o] = av[n]; o++; - if (debug) - alog("Param: %s", newav[o - 1]); + Alog(LOG_DEBUG) << "Param: " << newav[o - 1]; } n++; } @@ -519,7 +518,7 @@ int anope_event_fjoin(const char *source, int ac, const char **av) if (cm) { - alog("Recieved unknown mode prefix %c in FJOIN string", buf[0]); + Alog() << "Recieved unknown mode prefix " << buf[0] << " in FJOIN string"; continue; } @@ -529,8 +528,7 @@ int anope_event_fjoin(const char *source, int ac, const char **av) User *u = finduser(buf); if (!u) { - if (debug) - alog("debug: FJOIN for nonexistant user %s on %s", buf.c_str(), c->name.c_str()); + Alog(LOG_DEBUG) << "FJOIN for nonexistant user " << buf << " on " << c->name; continue; } @@ -612,11 +610,9 @@ int anope_event_topic(const char *source, int ac, const char **av) Channel *c = findchan(av[0]); time_t topic_time = time(NULL); - if (!c) { - if (debug) { - alog("debug: TOPIC %s for nonexistent channel %s", - merge_args(ac - 1, av + 1), av[0]); - } + if (!c) + { + Alog(LOG_DEBUG) << "TOPIC " << merge_args(ac - 1, av + 1) << " for nonexistent channel " << av[0]; return MOD_CONT; } @@ -720,10 +716,9 @@ int anope_event_setname(const char *source, int ac, const char **av) return MOD_CONT; u = finduser(source); - if (!u) { - if (debug) { - alog("debug: SETNAME for nonexistent user %s", source); - } + if (!u) + { + Alog(LOG_DEBUG) << "SETNAME for nonexistent user " << source; return MOD_CONT; } @@ -739,10 +734,9 @@ int anope_event_chgname(const char *source, int ac, const char **av) return MOD_CONT; u = finduser(source); - if (!u) { - if (debug) { - alog("debug: FNAME for nonexistent user %s", source); - } + if (!u) + { + Alog(LOG_DEBUG) << "FNAME for nonexistent user " << source; return MOD_CONT; } @@ -758,10 +752,9 @@ int anope_event_setident(const char *source, int ac, const char **av) return MOD_CONT; u = finduser(source); - if (!u) { - if (debug) { - alog("debug: SETIDENT for nonexistent user %s", source); - } + if (!u) + { + Alog(LOG_DEBUG) << "SETIDENT for nonexistent user " << source; return MOD_CONT; } @@ -777,10 +770,9 @@ int anope_event_chgident(const char *source, int ac, const char **av) return MOD_CONT; u = finduser(av[0]); - if (!u) { - if (debug) { - alog("debug: CHGIDENT for nonexistent user %s", av[0]); - } + if (!u) + { + Alog(LOG_DEBUG) << "CHGIDENT for nonexistent user " << av[0]; return MOD_CONT; } @@ -796,10 +788,9 @@ int anope_event_sethost(const char *source, int ac, const char **av) return MOD_CONT; u = finduser(source); - if (!u) { - if (debug) { - alog("debug: SETHOST for nonexistent user %s", source); - } + if (!u) + { + Alog(LOG_DEBUG) << "SETHOST for nonexistent user " << source; return MOD_CONT; } @@ -850,10 +841,9 @@ int anope_event_chghost(const char *source, int ac, const char **av) return MOD_CONT; u = finduser(source); - if (!u) { - if (debug) { - alog("debug: FHOST for nonexistent user %s", source); - } + if (!u) + { + Alog(LOG_DEBUG) << "FHOST for nonexistent user " << source; return MOD_CONT; } |
