Page 1 of 1

Only allow 1 channel ?

Posted: Thu Apr 19, 2012 6:20 pm
by ulimetic
Hello!
I'm a noob so mind my noobness...

allow channel {
channel "#test";
};

This won't restrict to "#test" only so i've added

deny channel {
channel "#*";
};

But it doesn't start now.. How to restrict to #test with 3.2.9 ? Thank you

Re: Only allow 1 channel ?

Posted: Fri Apr 20, 2012 2:05 am
by cards
add a reason and see if it helps. I believe "reason" is required in the deny channel block

Re: Only allow 1 channel ?

Posted: Fri Apr 20, 2012 8:19 pm
by ulimetic
Thanks, it seems to work but now how can i restrict to two channels ?

I've tried

deny channel {
channel "#*";
reason "unauthorized";
}

allow channel {
channel "#test0";
};

allow channel {
channel "#test1";
};

But #test1 is unauthorized... Same result with :

allow channel {
channel "#test0";
channel "#test1";
};

Help please :)

Re: Only allow 1 channel ?

Posted: Fri Apr 20, 2012 11:19 pm
by Stealth
Opers are allowed to join denied channels. Make sure when you test this you are not opered!

Re: Only allow 1 channel ?

Posted: Fri Apr 20, 2012 11:39 pm
by ulimetic
yea but i CAN'T join #test1 !

Re: Only allow 1 channel ?

Posted: Sat Apr 21, 2012 12:26 am
by Stealth
You can only have one channel per allow channel block

EDIT: Also, you're missing a semi-colon (;) after } at the end of your deny channel block.

EDIT EDIT: It seems something has changed in the later versions to allow multiple channels in the allow channel block... I still recommend creating one allow channel block for each channel though.