optional parameter time to acct.ban() and acct.disable()
Moderator: POL Developer
optional parameter time to acct.ban() and acct.disable()
I would like to see an optional time parameters in these methods because right now the only way to ban or disable an account for a certain amount of time is by having a script that loops all the time and check with ReadGameClock() if it should be enabled or unbanned again.
Re: optional parameter time to acct.ban() and acct.disable()
But... thats the only way to do it in the core, too.
Make a new thread, that constantly goes through and sees which ones are ready to be re-enabled.
Its possible for a thread for each time instance, but that's still the same concept as scripting it.
Make a new thread, that constantly goes through and sees which ones are ready to be re-enabled.
Its possible for a thread for each time instance, but that's still the same concept as scripting it.
Re: optional parameter time to acct.ban() and acct.disable()
Packethook on the login. Save the time as an account prop then when they send the login packet, grab the name, see if its banned and if its expired, then unban it if expired. Once that's done, pass the login packet to POL.