ignore bots and ircops on cmd_resync
authorpk910 <philipp@zoelle1.de>
Sat, 24 Sep 2011 23:13:23 +0000 (01:13 +0200)
committerpk910 <philipp@zoelle1.de>
Sat, 24 Sep 2011 23:13:23 +0000 (01:13 +0200)
cmd_neonserv_resync.c

index 78a1edd50271d1a29e823d7708ec8c594b0229f0..888ff3d1dd7fa2ad2008d67a3ba259f117d2453b 100644 (file)
@@ -110,7 +110,7 @@ static void neonserv_cmd_resync_async1(struct ClientSocket *client, struct Clien
         } else {
             if((chanuser->flags & CHANUSERFLAG_OPPED) && resync_op && !(chanuser->user->flags & (USERFLAG_ISBOT | USERFLAG_ISIRCOP)))
                 modeBufferDeop(modeBuf, chanuser->user->nick);
-            if((chanuser->flags & CHANUSERFLAG_VOICED) && resync_voice)
+            if((chanuser->flags & CHANUSERFLAG_VOICED) && resync_voice && !(chanuser->user->flags & (USERFLAG_ISBOT | USERFLAG_ISIRCOP)))
                 modeBufferDevoice(modeBuf, chanuser->user->nick);
         }