]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Fix NJOIN not propagating "half ops" status
authorAlexander Barton <alex@barton.de>
Sun, 13 Dec 2015 18:55:47 +0000 (19:55 +0100)
committerAlexander Barton <alex@barton.de>
Sun, 13 Dec 2015 18:55:47 +0000 (19:55 +0100)
ngIRCd tested for the wrong prefix of "half ops" when processing NJOIN
commands and therefore never classified a remote user as "half op".

Thanks to wowaname for pointing this out on #ngircd!

src/ngircd/irc-server.c

index 92186aff7fcdbae8d8a7e5c02f7c177e1d231281..265a9859e04bfaa95b06d53d2cbce02b26767d16 100644 (file)
@@ -264,7 +264,7 @@ IRC_NJOIN( CLIENT *Client, REQUEST *Req )
                        if( *ptr == '~' ) is_owner = true;
                        if( *ptr == '&' ) is_chanadmin = true;
                        if( *ptr == '@' ) is_op = true;
-                       if( *ptr == 'h' ) is_halfop = true;
+                       if( *ptr == '%' ) is_halfop = true;
                        if( *ptr == '+' ) is_voiced = true;
                        ptr++;
                }