Page 1 of 1

channel restriction?

Posted: Mon Apr 19, 2004 10:52 pm
by Jappie
is it posible to restrict unregisterd channel? so if you join one you will be kicked/banned from it.

i am running anopeservices and how do i backup the settings ?

greetz Jappie

Posted: Mon Apr 19, 2004 11:20 pm
by aquanight
Uh... this is kinda difficult. You can't really kickban people from an unregistered channel because if there's no one else there the ban will die when the channel is destroyed. Plus, if no one can join an unreg'd channel then how would you register them, since most services require a channel to actually exist (i.e. have at least one member) and that channel must be reg'd by a chanop (or possibly an services operator).

As to your second question, this is a services question and you should look on Anope's web site (or RTFHS) to see how to do this.

Posted: Mon Apr 19, 2004 11:38 pm
by Jappie
i only need 1 channel on my irc server thats why i need to restrict all other channels. because no one will connect through irc but only through java client. and i don't want to people make there own channels.

Posted: Mon Apr 19, 2004 11:49 pm
by aquanight
In that case:

Code: Select all

deny channel {
  channel "#*";
  reason "Single-channel network (or whatever other reason.";
  redirect "#InsertYourMainChannelName";
};

allow channel {
  channel "#InsertYourMainChannelName";
};

Posted: Tue Apr 20, 2004 5:57 am
by Ron2K
There could be an alternative method. IRC Services has the following two directives:
# CSEnableRegister [OPTIONAL]
# Allows the REGISTER command to be used. This is usually a good
# thing, but if you don't want your users to be able to register
# channels, remove (or comment out) this directive. Note, however,
# that Services administrators and the Services super-user will
# still be able to use the REGISTER command even if this directive
# is not given.



# CSRegisteredOnly [OPTIONAL]
# Treats unregistered channels as if they were forbidden,
# disallowing access by ordinary users to any channels not
# explicitly registered with ChanServ. IRC operators will be
# allowed to enter such channels, as they are for ordinary
# forbidden channels. Note that this directive operates
# independently from the CSEnableRegister directive; if
# CSEnableRegister is commented out, non-Services-admin IRC
# operators will be able to join unregistered channels but will
# not be permitted to register them.
Whether or not Anope has something similar, I don't know.

Posted: Wed Apr 21, 2004 5:44 pm
by Jappie
thnx i am gonne look if it works, and about anope it backups himself :P

[edit]

the restricting works perfect !!!!
Thnx aquanight :D 8)

Posted: Thu Apr 22, 2004 6:00 am
by jewles
the best way to to block channels is a deny block... But the only want to enable channels would be to add an allow block for each channel... and example would be...

Code: Select all

deny channel {
	channel "*";
	reason "Close Network";
};

Code: Select all

allow channel {
	channel "#MYCHAN";
};
Other than this, i'm not sure what your options are...

Posted: Thu Apr 22, 2004 10:53 pm
by aquanight
jewles, that's almost exactly what I said about 3 posts above yours.

Posted: Fri Apr 23, 2004 5:51 am
by Ron2K
(lol)

Posted: Fri Apr 23, 2004 9:40 am
by jewles
pfft like I read all 100 post! :evil: