Revert the previous 'fix' since to can never be None at that point. Also,

remove those evil lines full of white-space!
This commit is contained in:
James Vega 2004-07-07 18:04:55 +00:00
parent e5e1f2e84e
commit 7fbb6daa15

View File

@ -140,7 +140,7 @@ def reply(msg, s, prefixName=True, private=False,
if not s: if not s:
s = 'Error: I tried to send you an empty message.' s = 'Error: I tried to send you an empty message.'
# Let's may sure we don't do, "#channel: foo.". # Let's may sure we don't do, "#channel: foo.".
if to is None and prefixName and not ircutils.isChannel(to): if prefixName and not ircutils.isChannel(to):
s = '%s: %s' % (to, s) s = '%s: %s' % (to, s)
# And now, let's decide whether it's a PRIVMSG or a NOTICE. # And now, let's decide whether it's a PRIVMSG or a NOTICE.
msgmaker = ircmsgs.privmsg msgmaker = ircmsgs.privmsg