Only allow 1 channel ?

These are old archives. They are kept for historic purposes only.
Post Reply
ulimetic
Posts: 3
Joined: Thu Apr 19, 2012 6:16 pm

Only allow 1 channel ?

Post 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
cards
Posts: 85
Joined: Sat Jun 12, 2004 5:04 am

Re: Only allow 1 channel ?

Post by cards »

add a reason and see if it helps. I believe "reason" is required in the deny channel block
NetAdmin
irc.420-HighTimes.com
ulimetic
Posts: 3
Joined: Thu Apr 19, 2012 6:16 pm

Re: Only allow 1 channel ?

Post 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 :)
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Re: Only allow 1 channel ?

Post by Stealth »

Opers are allowed to join denied channels. Make sure when you test this you are not opered!
ulimetic
Posts: 3
Joined: Thu Apr 19, 2012 6:16 pm

Re: Only allow 1 channel ?

Post by ulimetic »

yea but i CAN'T join #test1 !
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Re: Only allow 1 channel ?

Post 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.
Post Reply