mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-18 14:40:51 +01:00
Trying fix for lack of prefixing name.
This commit is contained in:
parent
fefe1f2806
commit
b594ef798a
@ -124,6 +124,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.
|
||||||
|
if prefixName and not any(ircutils.isChannel, [target, to]):
|
||||||
|
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)
|
||||||
if private:
|
if private:
|
||||||
@ -137,8 +140,6 @@ def reply(msg, s, prefixName=True, private=False,
|
|||||||
s = ircutils.safeArgument(s)
|
s = ircutils.safeArgument(s)
|
||||||
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.'
|
||||||
if prefixName and not any(ircutils.isChannel, [target, to]):
|
|
||||||
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
|
||||||
if notice:
|
if notice:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user