mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Hack.
This commit is contained in:
parent
b594ef798a
commit
287f016e58
@ -125,7 +125,9 @@ def canonicalName(command):
|
|||||||
def reply(msg, s, prefixName=True, private=False,
|
def reply(msg, s, prefixName=True, private=False,
|
||||||
notice=False, to=None, action=False):
|
notice=False, to=None, action=False):
|
||||||
# This is so we don't prefix a channel name.
|
# 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)
|
s = '%s: %s' % (to, s)
|
||||||
# Ok, let's make the target:
|
# Ok, let's make the target:
|
||||||
target = ircutils.replyTo(msg)
|
target = ircutils.replyTo(msg)
|
||||||
|
Loading…
Reference in New Issue
Block a user