mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
Log snotices with their description rather than just as "snomask".
This commit is contained in:
parent
0438ae0aa4
commit
8faa6ac773
@ -868,7 +868,6 @@
|
||||
# - USERS - information relating to user connection and disconnection
|
||||
# - OPER - succesful and failed oper attempts
|
||||
# - KILL - kill related messages
|
||||
# - snomask - server notices (*all* snomasks will be logged)
|
||||
# - FILTER - messages related to filter matches (filter module)
|
||||
# - CONFIG - configuration related messages
|
||||
# - COMMAND - die and restart messages, and messages related to unknown user types
|
||||
|
@ -124,12 +124,9 @@ void Snomask::Flush()
|
||||
|
||||
void Snomask::Send(char letter, const std::string& desc, const std::string& msg)
|
||||
{
|
||||
std::string log = desc;
|
||||
log.append(": ").append(msg);
|
||||
ServerInstance->Logs->Log("snomask", LOG_DEFAULT, log);
|
||||
ServerInstance->Logs->Log(desc, LOG_DEFAULT, msg);
|
||||
const std::string finalmsg = InspIRCd::Format("*** %s: %s", desc.c_str(), msg.c_str());
|
||||
|
||||
std::string finalmsg = "*** ";
|
||||
finalmsg.append(log);
|
||||
/* Only opers can receive snotices, so we iterate the oper list */
|
||||
const UserManager::OperList& opers = ServerInstance->Users->all_opers;
|
||||
for (UserManager::OperList::const_iterator i = opers.begin(); i != opers.end(); ++i)
|
||||
|
Loading…
x
Reference in New Issue
Block a user