Page 1 of 1

Channel restriction based on class / port used to connect

Posted: Thu May 31, 2007 8:52 pm
by TheShining
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

Posted: Thu May 31, 2007 9:24 pm
by Stealth
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.

Posted: Thu Jun 14, 2007 1:07 am
by elskwi
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