Tried to fix jamessan's dealio.

This commit is contained in:
Jeremy Fincher 2004-06-06 23:50:19 +00:00
parent b77a16f9e4
commit dcd5606b6c

View File

@ -126,10 +126,9 @@ def reply(msg, s, prefixName=True, private=False,
notice=False, to=None, action=False): notice=False, to=None, action=False):
# Ok, let's make the target: # Ok, let's make the target:
target = ircutils.replyTo(msg) target = ircutils.replyTo(msg)
if private:
if to is not None: if to is not None:
target = to target = to
else: elif private:
target = msg.nick target = msg.nick
if to is None: if to is None:
to = msg.nick to = msg.nick