diff options
| author | 2021-04-27 10:19:35 +0100 | |
|---|---|---|
| committer | 2021-04-27 10:37:04 +0100 | |
| commit | 8526836cf598b49de6fe8e1cef7a169d3de481f8 (patch) | |
| tree | f9ae452b867f69c6e09913db2dd84ae3fdaba7e3 /include | |
| parent | Use parameter pack expansion instead of recursive calls. (diff) | |
| parent | Fix SendNoticeInternal not having a NULL command variant. (diff) | |
Merge branch 'insp3' into master.
Diffstat (limited to 'include')
| -rw-r--r-- | include/modules/ircv3_replies.h | 5 |
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: |
