]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/irc-server.c
Fix NJOIN not propagating "half ops" status
[ngircd-alex.git] / src / ngircd / irc-server.c
index 5ac8810f2b4ce12707bbc20d3d356545164e40cc..265a9859e04bfaa95b06d53d2cbce02b26767d16 100644 (file)
@@ -35,6 +35,8 @@
 #include "irc-write.h"
 #include "op.h"
 
+#include "irc-server.h"
+
 /**
  * Handler for the IRC "SERVER" command.
  *
@@ -262,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++;
                }