optional parameter time to acct.ban() and acct.disable()

Archive of the older Feature Request Forum Posts

Moderator: POL Developer

Locked
Tomi
POL Developer
Posts: 477
Joined: Tue Feb 21, 2006 5:08 pm

optional parameter time to acct.ban() and acct.disable()

Post by Tomi » Thu Feb 05, 2009 7:30 am

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.

User avatar
Austin
Former Developer
Posts: 615
Joined: Wed Jan 25, 2006 2:30 am

Re: optional parameter time to acct.ban() and acct.disable()

Post by Austin » Thu Feb 05, 2009 8:18 am

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.

User avatar
CWO
POL Expert
Posts: 1151
Joined: Sat Feb 04, 2006 5:49 pm
Location: Chicago, IL USA

Re: optional parameter time to acct.ban() and acct.disable()

Post by CWO » Thu Feb 05, 2009 3:19 pm

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.

Locked