mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-05 18:49:23 +01:00
irclib: fix _getTarget when to= is given and self.private=True
This commit is contained in:
parent
8a52902727
commit
69c948bd5f
@ -511,7 +511,9 @@ class RichReplyMethods(object):
|
||||
# change the state of this Irc object.
|
||||
if to is not None:
|
||||
self.to = self.to or to
|
||||
if self.private or self.msg.channel is None:
|
||||
if self.private:
|
||||
target = to or self.msg.nick
|
||||
elif self.msg.channel is None:
|
||||
target = self.msg.nick
|
||||
else:
|
||||
target = self.to or self.msg.args[0]
|
||||
|
Loading…
Reference in New Issue
Block a user