X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsnomasks.cpp;h=8ab5682d6dc4c782d378798ee8cb0ad169aa6b55;hb=551d687ec6d7ce44be35fae0dd7345fe73c4f63a;hp=c35c19d4eb680013ccf737259c247acc1ded0b4c;hpb=46a39046196f55b52336e19662bb7bac85b731ac;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/snomasks.cpp b/src/snomasks.cpp index c35c19d4e..8ab5682d6 100644 --- a/src/snomasks.cpp +++ b/src/snomasks.cpp @@ -100,11 +100,11 @@ void Snomask::SendMessage(const std::string &message, char mysnomask) std::string desc = Description; if (desc.empty()) - desc = "SNO-" + tolower(mysnomask); + desc = std::string("SNO-") + (char)tolower(mysnomask); if (isupper(mysnomask)) desc = "REMOTE" + desc; ModResult MOD_RESULT; - ServerInstance->Logs->Log("snomask", DEFAULT, "%s: %s", desc.c_str(), message.c_str()); + ServerInstance->Logs->Log("snomask", LOG_DEFAULT, "%s: %s", desc.c_str(), message.c_str()); FIRST_MOD_RESULT(OnSendSnotice, MOD_RESULT, (mysnomask, desc, message)); @@ -136,12 +136,12 @@ void Snomask::Flush() { std::string desc = Description; if (desc.empty()) - desc = "SNO-" + tolower(LastLetter); + desc = std::string("SNO-") + (char)tolower(LastLetter); if (isupper(LastLetter)) desc = "REMOTE" + desc; std::string mesg = "(last message repeated "+ConvToStr(Count)+" times)"; - ServerInstance->Logs->Log("snomask", DEFAULT, "%s: %s", desc.c_str(), mesg.c_str()); + ServerInstance->Logs->Log("snomask", LOG_DEFAULT, "%s: %s", desc.c_str(), mesg.c_str()); FOREACH_MOD(I_OnSendSnotice, OnSendSnotice(LastLetter, desc, mesg)); @@ -163,7 +163,7 @@ void Snomask::Flush() } } - LastMessage = ""; + LastMessage.clear(); LastBlocked = false; Count = 0; }