From 235a986964ff09dcc8662ea078518cad6bfbf11b Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 5 Mar 2020 12:22:45 +0000 Subject: Add support for sending a standard reply with no command name. --- include/modules/ircv3_replies.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)); -- cgit v1.2.3