This commit is contained in:
Loudrob 2015-04-05 14:07:59 -04:00
parent f1f427a3e8
commit 11d11825c1

View file

@ -44,7 +44,7 @@ class BanFSM(FSM):
self.accountId = fields.get('ACCOUNT_ID')
if self.accountId:
self.performBan(0 if self.duration < 0 else datetime.date.now() + (self.duration * 3600000))
self.performBan(0 if self.duration < 0 else datetime.datetime.now() + (self.duration * 3600000))
def getAvatarDetails(self):
av = self.air.doId2do.get(self.avId)
@ -133,4 +133,4 @@ def ban(reason, duration):
if target == invoker:
return "You can't ban yourself!"
simbase.air.banManager.ban(invoker.doId, target.doId, duration, reason)
return "Banned %s from the game server!" % target.getName()
return "Banned %s from the game server!" % target.getName()