X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsnomasks.cpp;h=8ab5682d6dc4c782d378798ee8cb0ad169aa6b55;hb=551d687ec6d7ce44be35fae0dd7345fe73c4f63a;hp=4953212a047968fafec0c486115470b1c6b0fc6a;hpb=90aa5811d17205c4a87f91c0f9ad12c05a03ec44;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/snomasks.cpp b/src/snomasks.cpp index 4953212a0..8ab5682d6 100644 --- a/src/snomasks.cpp +++ b/src/snomasks.cpp @@ -104,7 +104,7 @@ void Snomask::SendMessage(const std::string &message, char 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)); @@ -141,7 +141,7 @@ void Snomask::Flush() 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; }