mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 14:59:34 +01:00
Fixed the problem with prefixing the nick in private messages.
This commit is contained in:
parent
6fb53c1007
commit
f2ac57eb8a
@ -123,8 +123,6 @@ 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.
|
|
||||||
|
|
||||||
# Ok, let's make the target:
|
# Ok, let's make the target:
|
||||||
target = ircutils.replyTo(msg)
|
target = ircutils.replyTo(msg)
|
||||||
if private:
|
if private:
|
||||||
@ -139,7 +137,8 @@ def reply(msg, s, prefixName=True, private=False,
|
|||||||
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.'
|
||||||
# Let's may sure we don't do, "#channel: foo.".
|
# Let's may sure we don't do, "#channel: foo.".
|
||||||
if prefixName and not ircutils.isChannel(to):
|
if prefixName and ircutils.isChannel(target):
|
||||||
|
if not ircutils.isChannel(to):
|
||||||
s = '%s: %s' % (to, s)
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user