From 287f016e58d0c904b1a3a36cd5f2e95279ea558e Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 23 Jun 2004 14:03:18 +0000 Subject: [PATCH] Hack. --- src/callbacks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/callbacks.py b/src/callbacks.py index 63a56bf53..242820015 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -125,7 +125,9 @@ def canonicalName(command): 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 any(ircutils.isChannel, [target, to]): + + if prefixName and not \ + sum([ircutils.isChannel(x) for x in (target, to) if x]): s = '%s: %s' % (to, s) # Ok, let's make the target: target = ircutils.replyTo(msg)