]> jfr.im git - irc/quakenet/newserv.git/commitdiff
chanfix: Fix check for null pointer.
authorGunnar Beutner <redacted>
Thu, 8 Aug 2013 14:33:20 +0000 (16:33 +0200)
committerGunnar Beutner <redacted>
Thu, 8 Aug 2013 14:33:20 +0000 (16:33 +0200)
chanfix/chanfix.c

index 698511b48f17151fc6cf993831e2d42c60cb9411..e3eff69caf6c10e8227d661aa01fac231e2fc214 100644 (file)
@@ -704,7 +704,7 @@ void cfsched_dosample(void *arg) {
         if ((cp->users->content[a] != nouser) && (cp->users->content[a] & CUMODE_OP)) {
           np = getnickbynumeric(cp->users->content[a]);
 
-          if (np)
+          if (!np)
             continue;
 
 #if !CFDEBUG