diff options
author | Adam <Adam@anope.org> | 2011-08-18 00:47:34 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-08-18 00:47:34 -0400 |
commit | ff7479f437c45a44d9c81f5e1102fa5a1ffe96a6 (patch) | |
tree | 77cbe42fa07a622de90ce46795e742ed9c9f1ee9 /modules/protocol/bahamut.cpp | |
parent | 487d828fa0f69d1b425f17499c6f0991b5691c08 (diff) |
Fixed attaching to events in db_mysql & possibly having ChannelInfo::WhoSends return NULL if there really are *no* bots
Diffstat (limited to 'modules/protocol/bahamut.cpp')
-rw-r--r-- | modules/protocol/bahamut.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/protocol/bahamut.cpp b/modules/protocol/bahamut.cpp index cecc480f3..438703b78 100644 --- a/modules/protocol/bahamut.cpp +++ b/modules/protocol/bahamut.cpp @@ -79,9 +79,9 @@ class BahamutIRCdProto : public IRCDProto void SendModeInternal(const BotInfo *source, const Channel *dest, const Anope::string &buf) { if (Capab.HasFlag(CAPAB_TSMODE)) - send_cmd(source->nick, "MODE %s %ld %s", dest->name.c_str(), static_cast<long>(dest->creation_time), buf.c_str()); + send_cmd(source ? source->nick : Config->ServerName, "MODE %s %ld %s", dest->name.c_str(), static_cast<long>(dest->creation_time), buf.c_str()); else - send_cmd(source->nick, "MODE %s %s", dest->name.c_str(), buf.c_str()); + send_cmd(source ? source->nick : Config->ServerName, "MODE %s %s", dest->name.c_str(), buf.c_str()); } void SendModeInternal(const BotInfo *bi, const User *u, const Anope::string &buf) |