1
0
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:
Sadie Powell
2023-07-11 15:08:03 +01:00
parent e717ac0a89
commit cc23f6dc01
+1 -1
View File
@@ -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;
}