Always parse the same number of arguments; empty string != None
This commit is contained in:
parent
1beed6751b
commit
a0a1ef8989
2 changed files with 3 additions and 3 deletions
|
|
@ -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"))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue