mirror of
https://github.com/anope/anope.git
synced 2026-06-27 00:36:38 +02:00
Fixed attaching to events in db_mysql & possibly having ChannelInfo::WhoSends return NULL if there really are *no* bots
This commit is contained in:
@@ -184,10 +184,7 @@ class PlexusProto : public IRCDProto
|
||||
|
||||
void SendModeInternal(const BotInfo *bi, const Channel *dest, const Anope::string &buf)
|
||||
{
|
||||
if (bi)
|
||||
send_cmd(bi->GetUID(), "MODE %s %s", dest->name.c_str(), buf.c_str());
|
||||
else
|
||||
send_cmd(Config->Numeric, "MODE %s %s", dest->name.c_str(), buf.c_str());
|
||||
send_cmd(bi ? bi->GetUID() : Config->Numeric, "MODE %s %s", dest->name.c_str(), buf.c_str());
|
||||
}
|
||||
|
||||
void SendModeInternal(const BotInfo *bi, const User *u, const Anope::string &buf)
|
||||
|
||||
Reference in New Issue
Block a user