summaryrefslogtreecommitdiff
path: root/modules/commands/gl_global.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-10-07 14:42:33 +0100
committerSadie Powell <sadie@witchery.services>2020-10-07 14:42:33 +0100
commit8b2c1548ab46401f96d4e2e0f8258664e21744fb (patch)
tree508e7c89ca1a5c6252cb631338372e4f03a93772 /modules/commands/gl_global.cpp
parent5dd5fa46440f9d76a725bfdf16d77bbb36ae7a6f (diff)
parent46e1395e62ad4d9a028b51f72d8d6a92187cf9b9 (diff)
Merge tag '2.0.8' into 2.1.
Diffstat (limited to 'modules/commands/gl_global.cpp')
-rw-r--r--modules/commands/gl_global.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/commands/gl_global.cpp b/modules/commands/gl_global.cpp
index 061649d32..a79caf730 100644
--- a/modules/commands/gl_global.cpp
+++ b/modules/commands/gl_global.cpp
@@ -37,10 +37,16 @@ class CommandGLGlobal : public Command
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
{
+ Reference<BotInfo> sender;
+ if (GService)
+ sender = GService->GetDefaultSender();
+ if (!sender)
+ sender = source.service;
+
this->SendSyntax(source);
source.Reply(" ");
source.Reply(_("Allows Administrators to send messages to all users on the\n"
- "network. The message will be sent from the nick \002%s\002."), source.service->nick.c_str());
+ "network. The message will be sent from the nick \002%s\002."), sender->nick.c_str());
return true;
}
};