mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +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,
|
||||
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:
|
||||
target = ircutils.replyTo(msg)
|
||||
if private:
|
||||
@ -137,8 +140,6 @@ 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.'
|
||||
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.
|
||||
msgmaker = ircmsgs.privmsg
|
||||
if notice:
|
||||
|
Loading…
Reference in New Issue
Block a user