format output of matches data.

pull/4/head
Tom Hendrikx 2011-11-07 20:06:20 +01:00 committed by Yaroslav Halchenko
parent 344effb437
commit 22b700766c
1 changed files with 2 additions and 2 deletions

View File

@ -161,7 +161,7 @@ class Actions(JailThread):
aInfo["ip"] = bTicket.getIP()
aInfo["failures"] = bTicket.getAttempt()
aInfo["time"] = bTicket.getTime()
aInfo["matches"] = bTicket.getMatches()
aInfo["matches"] = "".join(bTicket.getMatches())
if self.__banManager.addBanTicket(bTicket):
logSys.warn("[%s] Ban %s" % (self.jail.getName(), aInfo["ip"]))
for action in self.__actions:
@ -202,7 +202,7 @@ class Actions(JailThread):
aInfo["ip"] = ticket.getIP()
aInfo["failures"] = ticket.getAttempt()
aInfo["time"] = ticket.getTime()
aInfo["matches"] = ticket.getMatches()
aInfo["matches"] = "".join(ticket.getMatches())
logSys.warn("[%s] Unban %s" % (self.jail.getName(), aInfo["ip"]))
for action in self.__actions:
action.execActionUnban(aInfo)