]> jfr.im git - irc/UndernetIRC/gnuworld.git/commitdiff
mod.cservice: Fix compiler warnings for commands that may be disabled
authorMichael Poole <redacted>
Mon, 31 May 2021 00:43:16 +0000 (20:43 -0400)
committerMichael Poole <redacted>
Mon, 31 May 2021 00:43:16 +0000 (20:43 -0400)
mod.cservice/HELLOCommand.cc
mod.cservice/NEWPASSCommand.cc
mod.cservice/OPERJOINCommand.cc
mod.cservice/OPERPARTCommand.cc

index 81f9bbf8454e827060057b026d01ab7a09105e13..f10c2494b1ad7d684dfc285878c528c1948c546b 100644 (file)
@@ -212,6 +212,8 @@ bot->helloIPList.insert(
                bot->currentTime() + bot->helloBlockPeriod) );
 
 delete (newUser);
+#else // ALLOW_HELLO
+(void)theClient; (void)Message;
 #endif // ALLOW_HELLO
 
 return true ;
index 81cfebf9aa64f4c39a50e3e2c113bf3536885f0d..30c6016a6c62747af3fb07c898383595d36d7f47 100644 (file)
@@ -48,6 +48,7 @@ bot->incStat("COMMANDS.NEWPASS");
 
 #ifndef USE_NEWPASS
 bot->Notice(theClient, "To change your account password, please use the web interface.");
+(void)Message; (void)validChars;
 return true;
 #else
 
index 4c1a1d37be66b12b9a99925f17508c7ede7dc5de..d56cf306165df69acbadce1098b3287ab6166580 100644 (file)
@@ -125,6 +125,8 @@ if (tmpChan)
                }
        }
 
+#else // USER_OPERPARTJOIN
+(void)theClient; (void)Message;
 #endif // USE_OPERPARTJOIN
 
 return true;
index e02edec73cba6db6dde3d35514b1b33c3baf9c50..c95e04bf9db51e9da81fc60367c0109629890ab2 100644 (file)
@@ -113,6 +113,8 @@ bot->joinCount--;
 
 bot->Part(theChan->getName(), "At the request of an IRC Operator");
 
+#else // USE_OPERPARTJOIN
+(void)theClient; (void)Message;
 #endif // USE_OPERPARTJOIN
 
 return true;