aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-04-27 10:19:35 +0100
committerGravatar Sadie Powell2021-04-27 10:37:04 +0100
commit8526836cf598b49de6fe8e1cef7a169d3de481f8 (patch)
treef9ae452b867f69c6e09913db2dd84ae3fdaba7e3 /include
parentUse parameter pack expansion instead of recursive calls. (diff)
parentFix SendNoticeInternal not having a NULL command variant. (diff)
Merge branch 'insp3' into master.
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 2de084a5d..ad3c3ab45 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: