channel restriction?

These are old archives. They are kept for historic purposes only.
Post Reply
Jappie
Posts: 3
Joined: Mon Apr 19, 2004 11:38 am

channel restriction?

Post 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
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post 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.
Jappie
Posts: 3
Joined: Mon Apr 19, 2004 11:38 am

Post 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.
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post 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";
};
Ron2K

Post 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.
Jappie
Posts: 3
Joined: Mon Apr 19, 2004 11:38 am

Post 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)
jewles
Posts: 263
Joined: Thu Mar 11, 2004 7:41 pm
Location: Herndon, VA

Post 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...
FBSD-DEV Project
http://www.fbsd-dev.org

YatesDev Hosting
http://www.yatesdev.com

The Wrong Way
http://www.thewrongway.net
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post by aquanight »

jewles, that's almost exactly what I said about 3 posts above yours.
Ron2K

Post by Ron2K »

(lol)
jewles
Posts: 263
Joined: Thu Mar 11, 2004 7:41 pm
Location: Herndon, VA

Post by jewles »

pfft like I read all 100 post! :evil:
FBSD-DEV Project
http://www.fbsd-dev.org

YatesDev Hosting
http://www.yatesdev.com

The Wrong Way
http://www.thewrongway.net
Post Reply