Fix import of channel database.

This commit is contained in:
Valentin Lorentz 2015-05-23 21:00:05 +02:00
parent ac0e6b86c0
commit 8ed5522da0
1 changed files with 5 additions and 1 deletions

View File

@ -592,7 +592,11 @@ class IrcChannelCreator(Creator):
def ban(self, rest, lineno):
self._checkId()
(pattern, expiration) = rest.split()
parts = rest.split(maxsplit=2)
if len(parts) == 2: # Old format
(pattern, expiration) = parts
else:
(pattern, expiration, description) = parts
self.c.bans[pattern] = int(float(expiration))
def ignore(self, rest, lineno):