Always parse the same number of arguments; empty string != None

This commit is contained in:
nemunaire 2014-09-17 06:59:40 +02:00
commit a0a1ef8989
2 changed files with 3 additions and 3 deletions

View file

@ -271,11 +271,11 @@ class IRCMessage:
self.cmd = self.decode(p.group("command"))
# Parse params
if p.group("params"):
if p.group("params") is not None:
for param in p.group("params").strip().split(b' '):
self.params.append(param)
if p.group("trailing"):
if p.group("trailing") is not None:
self.params.append(p.group("trailing"))