mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-14 10:33:47 -05:00
block_account unblock fix
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -761,6 +761,7 @@ def block_account(name,days,reason="",toggle=False):
|
||||
if toggle and gf(owner,"blocked_until") and owner.info.blocked_until>datetime.now(): days=-1
|
||||
if days<=0:
|
||||
owner.info.blocked_until=really_old
|
||||
owner.banned=False
|
||||
owner.put()
|
||||
return "un-blocked %s"%owner.k()
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user