diff options
author | Sadie Powell <sadie@witchery.services> | 2020-10-07 14:42:33 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-10-07 14:42:33 +0100 |
commit | 8b2c1548ab46401f96d4e2e0f8258664e21744fb (patch) | |
tree | 508e7c89ca1a5c6252cb631338372e4f03a93772 /modules/commands/gl_global.cpp | |
parent | 5dd5fa46440f9d76a725bfdf16d77bbb36ae7a6f (diff) | |
parent | 46e1395e62ad4d9a028b51f72d8d6a92187cf9b9 (diff) |
Merge tag '2.0.8' into 2.1.
Diffstat (limited to 'modules/commands/gl_global.cpp')
-rw-r--r-- | modules/commands/gl_global.cpp | 8 |
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; } }; |