diff options
author | Sadie Powell <sadie@witchery.services> | 2020-10-06 15:13:14 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-10-06 15:13:14 +0100 |
commit | d0e839244593fb827d6eb0e4510470d978279497 (patch) | |
tree | 4d56f7fd0042dfa5cef9fb86f1529dacbc73f2bf /modules/commands/gl_global.cpp | |
parent | af8056d2ddf1822ac2a811f8009989cbf91f4f54 (diff) |
Fix the global/global command showing the wrong origin nick.
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; } }; |