From cc23f6dc011fa5b548dd4a1416bd6dee107ba7b6 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 11 Jul 2023 15:08:03 +0100 Subject: 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. --- src/logger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logger.cpp b/src/logger.cpp index acacda286..49cbc05b2 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -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; } -- cgit