aboutsummaryrefslogtreecommitdiffstats
path: root/include/modules
diff options
context:
space:
mode:
Diffstat (limited to 'include/modules')
-rw-r--r--include/modules/ircv3_replies.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/modules/ircv3_replies.h b/include/modules/ircv3_replies.h
index 5b94a7776..2de084a5d 100644
--- a/include/modules/ircv3_replies.h
+++ b/include/modules/ircv3_replies.h
@@ -91,7 +91,10 @@ class IRCv3::Replies::Reply
void Send(LocalUser* user, Command* command, const std::string& code, const std::string& description)
{
ClientProtocol::Message msg(cmd.c_str(), ServerInstance->Config->GetServerName());
- msg.PushParamRef(command->name);
+ if (command)
+ msg.PushParamRef(command->name);
+ else
+ msg.PushParam("*");
msg.PushParam(code);
msg.PushParam(description);
SendInternal(user, msg);
@@ -102,7 +105,10 @@ class IRCv3::Replies::Reply
const std::string& description)
{
ClientProtocol::Message msg(cmd.c_str(), ServerInstance->Config->GetServerName());
- msg.PushParamRef(command->name);
+ if (command)
+ msg.PushParamRef(command->name);
+ else
+ msg.PushParam("*");
msg.PushParam(code);
msg.PushParam(std::forward<Args>(args)...);
msg.PushParam(description);