summaryrefslogtreecommitdiff
path: root/src/send.c
diff options
context:
space:
mode:
authorDukePyrolator <DukePyrolator@5417fbe8-f217-4b02-8779-1006273d7864>2010-01-31 06:15:29 +0000
committerDukePyrolator <DukePyrolator@5417fbe8-f217-4b02-8779-1006273d7864>2010-01-31 06:15:29 +0000
commitaa4b3e256377030d291fc2d5f4db94985ce04395 (patch)
tree993302c0cbe754612f69c22bbbc57d00220cabd4 /src/send.c
parent47504c9de5accda45a19627fd2b6ec13baa6ba95 (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.c12
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);