mirror of
https://github.com/anope/anope.git
synced 2026-06-28 17:56:38 +02:00
Fix sending log messages from a renamed pseudoclient.
If a command is named e.g. nickserv/wibble it previously tried to look up the nickserv service and if this service didn't exist then it would fall back to sending from the first available service. This caused problems if the NickServ service had been renamed to something else. Reported by @AndrioCelos on IRC.
This commit is contained in:
+1
-1
@@ -89,7 +89,7 @@ Log::Log(LogType t, CommandSource &src, Command *_c, ChannelInfo *_ci) : u(src.G
|
||||
size_t sl = c->name.find('/');
|
||||
this->bi = NULL;
|
||||
if (sl != Anope::string::npos)
|
||||
this->bi = BotInfo::Find(c->name.substr(0, sl), true);
|
||||
this->bi = Config->GetClient(c->name.substr(0, sl));
|
||||
this->category = c->name;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user