]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/conf.c
Channel autojoin functionality
[ngircd-alex.git] / src / ngircd / conf.c
index 860aea8f607f12aeecc849fdd1af68d0bb38bce8..5ee552e64d67fb63050b0b6f0021555527f58e3f 100644 (file)
@@ -2000,6 +2000,9 @@ Handle_CHANNEL(const char *File, int Line, char *Var, char *Arg)
                        Config_Error_TooLong(File, Line, Var);
                return;
        }
+       if( strcasecmp( Var, "Autojoin" ) == 0 )
+               /* Check autojoin */
+               chan->autojoin = Check_ArgIsTrue(Arg);
        if( strcasecmp( Var, "Key" ) == 0 ) {
                /* Initial Channel Key (mode k) */
                len = strlcpy(chan->key, Arg, sizeof(chan->key));