Page 1 of 1

[DONE] Only allow private messages from people in shared channels

Posted: Fri Dec 30, 2016 10:26 pm
by Gottem
I wrote this in response to a statement on IRC by alhoceima:
would be great to have a commonchans module :Adds user mode +c, which if set, users must be on a common channel with you to private message you
Opers and ulines are exempt though, I'm fairly sure the reasons here are obvious. =] Grab the latest version from the git repo.

Re: [DONE] Only allow private messages from people in shared channels

Posted: Mon Jan 02, 2017 10:26 pm
by Gottem
I've updated the code a bit to always allow sending to U:Lines. This may be useful in the case of having modes-on-connect "+c";. Grab it from the repo in the OP. ;]

Re: [DONE] Only allow private messages from people in shared channels

Posted: Tue Jan 24, 2017 9:50 pm
by Gottem
Another important-ish update: starting with v4.0.10 the function has_common_channels() is declared as "extern", so I don't need to define my own anymore. I added a lil' check for pre-4.0.10 versions as those do need it.

Grab the latest version from the git link in the OP. =]