summaryrefslogtreecommitdiff
path: root/include/modules
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-03-05 12:22:45 +0000
committerSadie Powell <sadie@witchery.services>2020-04-02 20:55:53 +0100
commit235a986964ff09dcc8662ea078518cad6bfbf11b (patch)
treee4b87c57b59ea4eff5d8c9a56a08d3315ab911c0 /include/modules
parent26ddc3942d5465574a66126033971ee2d0d9c373 (diff)
Add support for sending a standard reply with no command name.
Diffstat (limited to 'include/modules')
-rw-r--r--include/modules/ircv3_replies.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/modules/ircv3_replies.h b/include/modules/ircv3_replies.h
index a6e2f3f0c..517546e46 100644
--- a/include/modules/ircv3_replies.h
+++ b/include/modules/ircv3_replies.h
@@ -143,7 +143,10 @@ class IRCv3::Replies::Reply
const T3& p3, const T4& p4, const T5& p5, const std::string& description)
{
ClientProtocol::Message msg(cmd.c_str(), ServerInstance->Config->ServerName);
- msg.PushParamRef(command->name);
+ if (command)
+ msg.PushParamRef(command->name);
+ else
+ msg.PushParam("*");
msg.PushParam(code);
msg.PushParam(ConvToStr(p1));
msg.PushParam(ConvToStr(p2));