diff options
author | Sadie Powell <sadie@witchery.services> | 2025-04-05 07:11:11 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2025-04-05 07:11:54 +0100 |
commit | ddd33e65b46c146903acf56d6755a6d6ca7072ea (patch) | |
tree | 311f70003d2161484ac54107b5a15f5132f36abd /src/messages.cpp | |
parent | e4f88d44cdf253873e2d80267ab0587bc820d87a (diff) |
Add a log message for when we receive a weirdly targeted message.
Diffstat (limited to 'src/messages.cpp')
-rw-r--r-- | src/messages.cpp | 3 |
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> ¶m 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); |