]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/modules/ircv3_replies.h
Update copyright headers.
[user/henk/code/inspircd.git] / include / modules / ircv3_replies.h
index f9b58fdf6ebc506370e5d071ce173f571bec5138..a974773681d8ac006439264755dfb84151687e2a 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * InspIRCd -- Internet Relay Chat Daemon
  *
- *   Copyright (C) 2019-2020 Sadie Powell <sadie@witchery.services>
+ *   Copyright (C) 2019-2021 Sadie Powell <sadie@witchery.services>
  *
  * This file is part of InspIRCd.  InspIRCd is free software: you can
  * redistribute it and/or modify it under the terms of the GNU General Public
@@ -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: