Channel restriction based on class / port used to connect
Channel restriction based on class / port used to connect
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!
-
- Head of Support
- Posts: 2085
- Joined: Tue Jun 15, 2004 8:50 pm
- Location: Chino Hills, CA, US
- Contact:
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.
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.