]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Add support for sending a standard reply with no command name.
authorSadie Powell <sadie@witchery.services>
Thu, 5 Mar 2020 12:22:45 +0000 (12:22 +0000)
committerSadie Powell <sadie@witchery.services>
Thu, 2 Apr 2020 19:55:53 +0000 (20:55 +0100)
include/modules/ircv3_replies.h

index a6e2f3f0c22c94f4a8a5ff23d1a5a6f13e00c165..517546e461e0f63eb5cd6f32fc4fdea310836e85 100644 (file)
@@ -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));