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

These are old archives. They are kept for historic purposes only.

Moderators: Gottem, Supporters

Post Reply
Gottem
UnrealIRCd coder
Posts: 192
Joined: Fri Aug 19, 2016 5:26 pm
Location: NL

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

Post 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.
If you like my modules, pls consider donating (credit card or iDEAL, use the custom job fee option in my shop) ;];]
Gottem
UnrealIRCd coder
Posts: 192
Joined: Fri Aug 19, 2016 5:26 pm
Location: NL

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

Post 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. ;]
If you like my modules, pls consider donating (credit card or iDEAL, use the custom job fee option in my shop) ;];]
Gottem
UnrealIRCd coder
Posts: 192
Joined: Fri Aug 19, 2016 5:26 pm
Location: NL

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

Post 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. =]
If you like my modules, pls consider donating (credit card or iDEAL, use the custom job fee option in my shop) ;];]
Post Reply