summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2018-06-25 14:21:49 +0100
committerPeter Powell <petpow@saberuk.com>2018-07-20 12:34:24 +0100
commit8faa6ac77378e39de2dbca64a2c54a484db8f77d (patch)
tree77af31c95c8c397c4eebff040ec7953216db5888 /src
parent0438ae0aa491a14de049e9731a5786af517f7c0e (diff)
Log snotices with their description rather than just as "snomask".
Diffstat (limited to 'src')
-rw-r--r--src/snomasks.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/snomasks.cpp b/src/snomasks.cpp
index fd6a2709a..98f16528e 100644
--- a/src/snomasks.cpp
+++ b/src/snomasks.cpp
@@ -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)