summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2023-07-11 15:08:03 +0100
committerSadie Powell <sadie@witchery.services>2023-07-11 15:13:17 +0100
commitcc23f6dc011fa5b548dd4a1416bd6dee107ba7b6 (patch)
tree1800056d48d3a68f4f78a163a085acc0c93c2eb3 /src
parente717ac0a89273b7eb50001b4374f3dda2934cd3a (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/logger.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}