mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
Irc: fix wrong target for reply()
This commit is contained in:
parent
02405c36b5
commit
1ac1e3eca6
@ -465,7 +465,7 @@ class Irc():
|
|||||||
"""Replies to the last caller in the right context (channel or PM)."""
|
"""Replies to the last caller in the right context (channel or PM)."""
|
||||||
|
|
||||||
# Private reply is enabled, or the caller was originally a PM
|
# Private reply is enabled, or the caller was originally a PM
|
||||||
if private or self.called_in in self.users:
|
if private or (self.called_in in self.users):
|
||||||
if not force_privmsg_in_private:
|
if not force_privmsg_in_private:
|
||||||
# For private replies, the default is to override the notice=True/False argument,
|
# For private replies, the default is to override the notice=True/False argument,
|
||||||
# and send replies as notices regardless. This is standard behaviour for most
|
# and send replies as notices regardless. This is standard behaviour for most
|
||||||
@ -475,7 +475,7 @@ class Irc():
|
|||||||
else:
|
else:
|
||||||
target = self.called_in
|
target = self.called_in
|
||||||
|
|
||||||
self.msg(self.called_in, text, notice=notice, source=source)
|
self.msg(target, text, notice=notice, source=source)
|
||||||
|
|
||||||
def toLower(self, text):
|
def toLower(self, text):
|
||||||
"""Returns a lowercase representation of text based on the IRC object's
|
"""Returns a lowercase representation of text based on the IRC object's
|
||||||
|
Loading…
Reference in New Issue
Block a user