summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2021-04-27 02:47:47 +0100
committerSadie Powell <sadie@witchery.services>2021-04-27 02:47:47 +0100
commit8a5a1c799e5bec875b081f70639156429d7847e3 (patch)
treef35954d6aaf16c1d8731a37d117fa46701b5e1d9 /include
parentc73666dd8ee5796180afb1435ffa20787a8a4f1b (diff)
Fix SendNoticeInternal not having a NULL command variant.
Diffstat (limited to 'include')
-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 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: