Channel restriction based on class / port used to connect

These are old archives. They are kept for historic purposes only.
Post Reply
TheShining

Channel restriction based on class / port used to connect

Post by TheShining » Thu May 31, 2007 8:52 pm

I'd like to request for someone to make a module that will restrict access to a channel(s) based on the class block or the port the user connected to the server with. Thanks in advance! :D

Stealth
Head of Support
Posts: 2086
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth » Thu May 31, 2007 9:24 pm

I don't believe the you can get port information about a user after they have connected, but the class information should be able to be seen...

For anyone who wishes to make the module, you'd need to hook PRE_LOCAL_JOIN, and check the class. Naturally, the module should have 2 functions: To only allow a certain class, or to block a certain class. Perhaps a mode with a parameter (maybe +<class> or -<class>), or a conf option specifying the class to allow/block.

Again, I'd code this module myself, but I do not know enough about coding modules to code this.

elskwi
Posts: 4
Joined: Wed Jun 13, 2007 3:59 pm

Post by elskwi » Thu Jun 14, 2007 1:07 am

commands >> trace <servermask|nickname>

With nickname

/trace eclipse

Give this

Operator clients eclipse [76FB464.3028A064.3119569B.IP] 0

The class is in second position

Maybe it can help you

Post Reply