remove CHANUSERFLAG_INVISIBLE if bot gets voiced / opped or +Dd gets removed
authorpk910 <philipp@zoelle1.de>
Wed, 14 Dec 2011 20:38:46 +0000 (21:38 +0100)
committerpk910 <philipp@zoelle1.de>
Wed, 14 Dec 2011 20:45:44 +0000 (21:45 +0100)
src/ModeNode.c

index 79f240cec1a50af15d5744719dce0c39adfbdc2e..6ed9b530b89e7b5d42ae3c7e844925bd5bf398ca 100644 (file)
@@ -145,6 +145,8 @@ static void parseModesUserPriv(struct ModeNode* modes, unsigned char flag, int a
         chanuser->flags |= flag;
     else
         chanuser->flags &= ~flag;
+    if((chanuser->flags & CHANUSERFLAG_OPPED_OR_VOICED) && (chanuser->flags & CHANUSERFLAG_INVISIBLE))
+        chanuser->flags &= ~CHANUSERFLAG_INVISIBLE;
 }
 
 static void parseModesBan(struct ModeNode* modes, int add, char *mask) {