mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-03 08:04:07 +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.
|
# change the state of this Irc object.
|
||||||
if to is not None:
|
if to is not None:
|
||||||
self.to = self.to or to
|
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
|
target = self.msg.nick
|
||||||
else:
|
else:
|
||||||
target = self.to or self.msg.args[0]
|
target = self.to or self.msg.args[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user