Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

m_connjoin: add exceptions #143

Open
manavortex opened this issue May 10, 2018 · 1 comment
Open

m_connjoin: add exceptions #143

manavortex opened this issue May 10, 2018 · 1 comment

Comments

@manavortex
Copy link

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.

@sebastiannielsen
Copy link
Contributor

sebastiannielsen commented May 11, 2018

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="" to each connect block it should apply to.

And create connect blocks (without autojoin tag - remember to put them BEFORE the catchall) for those that should be exempt from autojoin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants