]> jfr.im git - irc/quakenet/newserv.git/commitdiff
review - ops first
authorPaul <redacted>
Mon, 26 May 2008 00:20:16 +0000 (01:20 +0100)
committerPaul <redacted>
Mon, 26 May 2008 00:20:16 +0000 (01:20 +0100)
control/control.c

index f117483937e19c555c64696ffa1fb9b77a0877c6..9040fd69623a53d4178b3488ce57ba6b409f18be 100644 (file)
@@ -386,10 +386,10 @@ int controlchannel(void *sender, int cargc, char **cargv) {
         break;
     }
     if (cp->users->content[j]!=nouser) {      
-      if (cp->users->content[j]&CUMODE_VOICE)
-        voice++;
-      else if (cp->users->content[j]&CUMODE_OP) 
+      if (cp->users->content[j]&CUMODE_OP)
         ops++;
+      else if (cp->users->content[j]&CUMODE_VOICE) 
+        voice++;
       np=getnickbynumeric(cp->users->content[j]);
       sprintf(&buf[i*18],"%c%c%-15s ",cp->users->content[j]&CUMODE_VOICE?'+':' ',
         cp->users->content[j]&CUMODE_OP?'@':' ', np?np->nick:"!BUG-NONICK!");