Don't convert NOTICEs into PRIVMSGs (LP: #539757)

This commit is contained in:
Terence Simpson 2010-03-28 05:12:37 +01:00
parent 39faf3143d
commit 7f5bcbbfca

View File

@ -300,7 +300,11 @@ launchpad"""
rest = msg.args[1][1:]
msg.tag('identified', first == '+')
if first in ('+', '-'):
msg = ircmsgs.privmsg(msg.args[0], rest, msg=msg)
if msg.command == "NOTICE":
msg = ircmsgs.notice(msg.args[0], rest, msg=msg)
else:
msg = ircmsgs.privmsg(msg.args[0], rest, msg=msg)
assert msg.receivedAt and msg.receivedOn and msg.receivedBy
if len(msg.args) >= 2 and msg.args[1] and msg.args[1][0] in ('+', '-'):