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/send.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/send.c')
| -rw-r--r-- | src/send.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/send.c b/src/send.c index 4ece37986..a032b1f03 100644 --- a/src/send.c +++ b/src/send.c @@ -36,14 +36,12 @@ void send_cmd(const char *source, const char *fmt, ...) if (source) { sockprintf(servsock, ":%s %s\r\n", source, buf); - if (debug) - alog("debug: Sent: :%s %s", source, buf); + Alog(LOG_DEBUG) << "Sent: :" << source << " " << buf; } else { sockprintf(servsock, "%s\r\n", buf); - if (debug) - alog("debug: Sent: %s", buf); + Alog(LOG_DEBUG) << "Sent: "<< buf; } va_end(args); @@ -65,14 +63,12 @@ void send_cmd(const std::string &source, const char *fmt, ...) if (!source.empty()) { sockprintf(servsock, ":%s %s\r\n", source.c_str(), buf); - if (debug) - alog("debug: Sent: :%s %s", source.c_str(), buf); + Alog(LOG_DEBUG) << "Sent: :" << source << " " << buf; } else { sockprintf(servsock, "%s\r\n", buf); - if (debug) - alog("debug: Sent: %s", buf); + Alog(LOG_DEBUG) << "Sent: " << buf; } va_end(args); |
