summaryrefslogtreecommitdiff
path: root/include/modules/ircv3_replies.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/modules/ircv3_replies.h')
-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: