summaryrefslogtreecommitdiff
path: root/src/messages.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-04-05 07:11:11 +0100
committerSadie Powell <sadie@witchery.services>2025-04-05 07:11:54 +0100
commitddd33e65b46c146903acf56d6755a6d6ca7072ea (patch)
tree311f70003d2161484ac54107b5a15f5132f36abd /src/messages.cpp
parente4f88d44cdf253873e2d80267ab0587bc820d87a (diff)
Add a log message for when we receive a weirdly targeted message.
Diffstat (limited to 'src/messages.cpp')
-rw-r--r--src/messages.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/messages.cpp b/src/messages.cpp
index b1c3c074d..726e0f953 100644
--- a/src/messages.cpp
+++ b/src/messages.cpp
@@ -334,7 +334,10 @@ void Privmsg::Run(MessageSource &source, const std::vector<Anope::string> &param
botname = botname.substr(0, s);
nick_only = true;
if (!servername.equals_ci(Me->GetName()))
+ {
+ Log(LOG_DEBUG) << "Received a " << name << " message for " << servername << " which is not " << Me->GetName() << ", ignoring.";
return;
+ }
}
BotInfo *bi = BotInfo::Find(botname, nick_only);