inspircd-contrib
inspircd-contrib copied to clipboard
m_connjoin: add exceptions
Hey there, I'm running an inspired, and I've got several accounts I keep around for test purposes. Is there a way to block those from m_connjoin? I would like to exclude a host mask or maybe a user mode.
Thanks in advance.
Already possible. Looked in the source of the m_conn_join.cpp module. Then I tested it and it works wonderfully.
And you simply specify autojoin parameter in the connect blocks.
Here is an example of exempting 192.168.0.0/16 from autojoin to #main but not #help, while localhost, 127.0.0.1, is exempt from all autojoins:
<connect allow="127.0.0.1/32"
name="local">
<connect allow="192.168.0.0/16"
name="lan"
autojoin="#help">
<connect allow="*"
name="default"
autojoin="#main,#help">
Note that the default config of the <autojoin channel="xxx">
should NOT be specified.
Note also that I have excluded the timeout and flood settings, you need to just add autojoin="
And create connect blocks (without autojoin tag - remember to put them BEFORE the catchall) for those that should be exempt from autojoin.