ngircd

Free, portable and lightweight Internet Relay Chat server http://ngircd.barton.de/
Log | Files | Refs | README | LICENSE

commit 398022631a573a2b8de7811cacb6c202e90f263e
parent f2cef85fde733d332b6ae3083274fd1165ca6ce2
Author: Alexander Barton <alex@barton.de>
Date:   Sun, 13 Dec 2015 19:55:47 +0100

Fix NJOIN not propagating "half ops" status

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!

Diffstat:
Msrc/ngircd/irc-server.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ngircd/irc-server.c b/src/ngircd/irc-server.c @@ -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++; }