NJOIN: correctly reset channel level flags
authorAlexander Barton <alex@barton.de>
Wed, 26 Sep 2012 21:51:05 +0000 (23:51 +0200)
committerAlexander Barton <alex@barton.de>
Wed, 26 Sep 2012 21:51:48 +0000 (23:51 +0200)
This fixes commit 7b01bb83.
Bug reported by DNS777 <dns@rbose.org>, thanks!

src/ngircd/irc-server.c

index 380ab6224f55cf9b0d504f80be5718eceff824ae..d605745c75d37655aeae29c57d73acf31c76ceb6 100644 (file)
@@ -219,7 +219,7 @@ IRC_NJOIN( CLIENT *Client, REQUEST *Req )
        ptr = strtok( nick_in, "," );
        while( ptr )
        {
-               is_op = is_voiced = false;
+               is_owner = is_chanadmin = is_op = is_halfop = is_voiced = false;
 
                /* cut off prefixes */
                while(( *ptr == '~') || ( *ptr == '&' ) || ( *ptr == '@' ) ||