diff options
author | Adam <Adam@Anope.org> | 2010-05-24 23:36:40 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-06-18 21:04:05 -0400 |
commit | 2fba686904e6f78ebab35df171c5757afeebf05d (patch) | |
tree | 523782bccc479606206f271cd6708b2f70fe8278 /src/send.c | |
parent | 3a2c2a916a26f4fa1844e71a9f1c2fc25337fd2b (diff) |
Burned slist, rewrote operservs XLine code
Diffstat (limited to 'src/send.c')
-rw-r--r-- | src/send.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/send.c b/src/send.c index e16856598..4209e2a1b 100644 --- a/src/send.c +++ b/src/send.c @@ -32,6 +32,15 @@ void send_cmd(const char *source, const char *fmt, ...) vsnprintf(buf, BUFSIZE - 1, fmt, args); + if (!UplinkSock) + { + if (source) + Alog(LOG_DEBUG) << "Attemtped to send \"" << source << " " << buf << "\" with UplinkSock NULL"; + else + Alog(LOG_DEBUG) << "Attemtped to send \"" << buf << "\" with UplinkSock NULL"; + return; + } + if (source) { UplinkSock->Write(":%s %s", source, buf); @@ -59,6 +68,15 @@ void send_cmd(const std::string &source, const char *fmt, ...) vsnprintf(buf, BUFSIZE - 1, fmt, args); + if (!UplinkSock) + { + if (!source.empty()) + Alog(LOG_DEBUG) << "Attemtped to send \"" << source << " " << buf << "\" with UplinkSock NULL"; + else + Alog(LOG_DEBUG) << "Attemtped to send " << buf << "\" with UplinkSock NULL"; + return; + } + if (!source.empty()) { UplinkSock->Write(":%s %s", source.c_str(), buf); |