]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Resolve two warnings clang complains about
authorChrisTX <xpipe@hotmail.de>
Sun, 14 Oct 2012 21:58:20 +0000 (23:58 +0200)
committerChrisTX <xpipe@hotmail.de>
Sun, 14 Oct 2012 21:58:20 +0000 (23:58 +0200)
No newline at end of file in consolecolors.h
String plus int in snomasks

include/consolecolors.h
src/snomasks.cpp

index 953beb34658c5ea3cf09dc76507ec7bed639ab33..f7ca1335ed244f16514d457d4fa035971fab2996 100644 (file)
@@ -97,4 +97,4 @@ inline std::ostream& con_reset(std::ostream &s)
 
 #endif
 
-#endif
\ No newline at end of file
+#endif
index c35c19d4eb680013ccf737259c247acc1ded0b4c..4953212a047968fafec0c486115470b1c6b0fc6a 100644 (file)
@@ -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)";