X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsnomasks.cpp;h=4b9c9d86b29194162eff736b61bee1da848af5c9;hb=b198b696c8c713949ede6a900646482112e5daf4;hp=c35c19d4eb680013ccf737259c247acc1ded0b4c;hpb=553a8da754c8cd308bad2008018849714e70f9b7;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/snomasks.cpp b/src/snomasks.cpp index c35c19d4e..4b9c9d86b 100644 --- a/src/snomasks.cpp +++ b/src/snomasks.cpp @@ -100,7 +100,7 @@ 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; @@ -136,7 +136,7 @@ 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)"; @@ -163,7 +163,7 @@ void Snomask::Flush() } } - LastMessage = ""; + LastMessage.clear(); LastBlocked = false; Count = 0; }