From 8a5a1c799e5bec875b081f70639156429d7847e3 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 27 Apr 2021 02:47:47 +0100 Subject: Fix SendNoticeInternal not having a NULL command variant. --- 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 f9b58fdf6..6bdecfd99 100644 --- a/include/modules/ircv3_replies.h +++ b/include/modules/ircv3_replies.h @@ -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: -- cgit v1.2.3