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

Need a module converted from 3.2.x to UnrealIRCd 4? Or looking for a certain module? Ask here.

Moderators: Gottem, Supporters

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

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

Post by Gottem » Fri Dec 30, 2016 10:26 pm

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 (through PayPal) or becoming a monthly Patron ;];]

Gottem
Posts: 133
Joined: Fri Aug 19, 2016 5:26 pm
Location: NL

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

Post by Gottem » Mon Jan 02, 2017 10:26 pm

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 (through PayPal) or becoming a monthly Patron ;];]

Gottem
Posts: 133
Joined: Fri Aug 19, 2016 5:26 pm
Location: NL

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

Post by Gottem » Tue Jan 24, 2017 9:50 pm

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 (through PayPal) or becoming a monthly Patron ;];]

Post Reply