From: pk910 Date: Wed, 14 Dec 2011 20:38:46 +0000 (+0100) Subject: remove CHANUSERFLAG_INVISIBLE if bot gets voiced / opped or +Dd gets removed X-Git-Tag: v5.3~138 X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=commitdiff_plain;h=4306aa8c968230fb5bf6d93f84b6a85a55f2e07b remove CHANUSERFLAG_INVISIBLE if bot gets voiced / opped or +Dd gets removed --- diff --git a/src/ModeNode.c b/src/ModeNode.c index 79f240c..6ed9b53 100644 --- a/src/ModeNode.c +++ b/src/ModeNode.c @@ -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) {