channel or nick required when creating a Response
This commit is contained in:
parent
4f27232fd4
commit
e1aff6c4cf
2 changed files with 4 additions and 4 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue