]> arthur.barton.de Git - ngircd-alex.git/commitdiff
NJOIN: Fixed propagation of user channel modes.
authorAlexander Barton <alex@barton.de>
Wed, 9 Jul 2003 18:45:56 +0000 (18:45 +0000)
committerAlexander Barton <alex@barton.de>
Wed, 9 Jul 2003 18:45:56 +0000 (18:45 +0000)
src/ngircd/irc-server.c

index eaa4f46c436fe9b2e1e0d0e9920e5e3907db47cb..7b7340f238b201298f1dc6ba69011f5fc6acbe2c 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "portab.h"
 
-static char UNUSED id[] = "$Id: irc-server.c,v 1.32 2003/04/20 23:09:26 alex Exp $";
+static char UNUSED id[] = "$Id: irc-server.c,v 1.33 2003/07/09 18:45:56 alex Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -344,6 +344,8 @@ IRC_NJOIN( CLIENT *Client, REQUEST *Req )
                        }
 
                        if( nick_out[0] != '\0' ) strlcat( nick_out, ",", sizeof( nick_out ));
+                       if( is_op ) strlcat( nick_out, "@", sizeof( nick_out ));
+                       if( is_voiced ) strlcat( nick_out, "+", sizeof( nick_out ));
                        strlcat( nick_out, ptr, sizeof( nick_out ));
                }
                else Log( LOG_ERR, "Got NJOIN for unknown nick \"%s\" for channel \"%s\"!", ptr, channame );