channel or nick required when creating a Response

This commit is contained in:
nemunaire 2014-11-12 23:50:48 +01:00
commit e1aff6c4cf
2 changed files with 4 additions and 4 deletions

View file

@ -51,7 +51,7 @@ class Response:
if self.channel is None:
if self.nick is not None:
return [ self.nick ]
return [ self.sender.split("!")[0] ]
return list()
elif isinstance(self.channel, list):
return self.channel
else: