]> jfr.im git - irc/UndernetIRC/gnuworld.git/commitdiff
mod.ccontrol: Fix some compiler warnings
authorMichael Poole <redacted>
Mon, 31 May 2021 00:42:30 +0000 (20:42 -0400)
committerMichael Poole <redacted>
Mon, 31 May 2021 00:42:30 +0000 (20:42 -0400)
mod.ccontrol/ccontrol.cc

index eaca516d4d5e3086bc00cf4839b945b52beadbb9..7a31a53fe14de0b911cb8a72a5f40f3af80921cd 100644 (file)
@@ -6050,7 +6050,7 @@ if(LogInfo->getLogins() > 5)
        }
 }
 
-void ccontrol::addFloodData(iClient* theClient, unsigned int floodPoints) {
+void ccontrol::addFloodData(iClient* theClient, unsigned int /*floodPoints*/) {
        if (!theClient->getCustomData(this)) {
                elog << "Couldnt find custom data for "
                        << theClient->getNickName() << endl;
@@ -7465,7 +7465,7 @@ return 0;
 
 bool ccontrol::listIpLExceptions( iClient *theClient )
 {
-listIpLExceptions(theClient, "", false);
+return listIpLExceptions(theClient, "", false);
 }
 
 bool ccontrol::listIpLExceptions( iClient *theClient, const string& ispName, bool listEmail )