From 645f969d702157a9a5ce864d3a3777f22cedac8d Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 13 Mar 2025 15:12:23 +0000 Subject: [PATCH] Fix sending global messages with the default sender. --- modules/global/global.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/global/global.cpp b/modules/global/global.cpp index 784088b97..cb2f74d38 100644 --- a/modules/global/global.cpp +++ b/modules/global/global.cpp @@ -132,7 +132,7 @@ public: bool SendSingle(const Anope::string &message, CommandSource *source, BotInfo* sender, Server* server) override { // We MUST have a sender. - if (sender) + if (!sender) sender = global; if (!sender) return false;