aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-03-14 04:55:01 +0000
committerGravatar Sadie Powell2021-03-17 04:16:24 +0000
commit8cb6691601602e560fbf3cb2122dd4e12bb4bcf1 (patch)
treeaca1965bdc281e9bbaf4490ccff63ceab09ee166 /include
parentMerge branch 'insp3' into master. (diff)
parentDefault <permchannelsdb:listmodes> to on. (diff)
Merge branch 'insp3' into master.
Diffstat (limited to 'include')
-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);