mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-24 02:54:05 +01:00
Fix import of channel database.
This commit is contained in:
parent
ac0e6b86c0
commit
8ed5522da0
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user