repo: ngircd
action: commit
revision: 
path_from: 
revision_from: 398022631a573a2b8de7811cacb6c202e90f263e:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit 398022631a573a2b8de7811cacb6c202e90f263e
Author: Alexander Barton 
Date:   Sun Dec 13 19:55:47 2015 +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!

diff --git a/src/ngircd/irc-server.c b/src/ngircd/irc-server.c
index 92186aff7fcdbae8d8a7e5c02f7c177e1d231281..
index ..265a9859e04bfaa95b06d53d2cbce02b26767d16 100644
--- 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++;
 		}

-----END OF PAGE-----