]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix SendNoticeInternal not having a NULL command variant.
authorSadie Powell <sadie@witchery.services>
Tue, 27 Apr 2021 01:47:47 +0000 (02:47 +0100)
committerSadie Powell <sadie@witchery.services>
Tue, 27 Apr 2021 01:47:47 +0000 (02:47 +0100)
include/modules/ircv3_replies.h

index f9b58fdf6ebc506370e5d071ce173f571bec5138..6bdecfd9939163fc8206481c3d2b618711a448be 100644 (file)
@@ -66,7 +66,10 @@ class IRCv3::Replies::Reply
 
        void SendNoticeInternal(LocalUser* user, Command* command, const std::string& description)
        {
-               user->WriteNotice(InspIRCd::Format("*** %s: %s", command->name.c_str(), description.c_str()));
+               if (command)
+                       user->WriteNotice(InspIRCd::Format("*** %s: %s", command->name.c_str(), description.c_str()));
+               else
+                       user->WriteNotice(InspIRCd::Format("*** %s", description.c_str()));
        }
 
  protected: