m_pmlist question

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

Moderators: Gottem, Supporters

Post Reply
Paul DK
Posts: 12
Joined: Sat Feb 24, 2018 12:33 am

m_pmlist question

Post by Paul DK » Wed Sep 26, 2018 7:59 pm

Hey Gottem,

Just wanted to clarify, white-list entries persist through -P +P changes but not through disconnect/reconnect of sessions?

If I'm right, could I request that pmlist is altered so that it DOES keep the users' white-list across sessions?

Hope this is possible and not too much trouble. 🍪 :D

Yours, with regards (and cookies)

Paul

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

Re: m_pmlist question

Post by Gottem » Tue Oct 02, 2018 3:26 pm

Paul DK wrote:
Wed Sep 26, 2018 7:59 pm
Just wanted to clarify, white-list entries persist through -P +P changes but not through disconnect/reconnect of sessions?
Correct, the list is stored in moddata attached to a client. Once they disconnect the client structure is destroyed and so is the moddata. I could attach it to the IRCd itself instead, but your UID changes on a new connection anyways so we can't use that. Using just a nick isn't reliable either because when you disconnect, someone could change it to yours and mess with your list. Not to mention that it would be quite memory consuming when the lists never/rarely get destroyed. =] The idea of the module is to act as a temporary measure against private message spam, since +D prevents them altogether and +R only allows registered nicks. But sometimes you may want to allow unregged nicks anyways. ;]

So in short: no, it's not really feasible. :>
If you like my modules, pls consider donating (through PayPal) or becoming a monthly Patron ;];]

Post Reply