diff --git a/otp/ai/BanManagerAI.py b/otp/ai/BanManagerAI.py index 317f77eb..08401439 100644 --- a/otp/ai/BanManagerAI.py +++ b/otp/ai/BanManagerAI.py @@ -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() \ No newline at end of file + return "Banned %s from the game server!" % target.getName()