/*
* 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
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: