From 2b87b4d949b22a6b9ca6eb0b9a6f51b3ff595b70 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 23 Jun 2004 14:11:21 +0000 Subject: [PATCH] Grr. --- src/callbacks.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/callbacks.py b/src/callbacks.py index cecd44193..27e696f56 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -126,8 +126,6 @@ def reply(msg, s, prefixName=True, private=False, notice=False, to=None, action=False): # This is so we don't prefix a channel name. - if prefixName and not ircutils.isChannel(to): - s = '%s: %s' % (to, s) # Ok, let's make the target: target = ircutils.replyTo(msg) if private: @@ -141,6 +139,9 @@ def reply(msg, s, prefixName=True, private=False, s = ircutils.safeArgument(s) if not s: s = 'Error: I tried to send you an empty message.' + # Let's may sure we don't do, "#channel: foo.". + if prefixName and not ircutils.isChannel(to): + s = '%s: %s' % (to, s) # And now, let's decide whether it's a PRIVMSG or a NOTICE. msgmaker = ircmsgs.privmsg if notice: