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,11 +126,10 @@ def reply(msg, s, prefixName=True, private=False,
notice=False, to=None, action=False):
# Ok, let's make the target:
target = ircutils.replyTo(msg)
if private:
if to is not None:
target = to
else:
target = msg.nick
if to is not None:
target = to
elif private:
target = msg.nick
if to is None:
to = msg.nick
# Ok, now let's make the payload: