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 ¶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);