Bug fix: Receive ChanServ NOTICEs in chat
This commit is contained in:
parent
02126c3e23
commit
f5973a7652
1 changed files with 1 additions and 2 deletions
3
irc.py
3
irc.py
|
@ -258,8 +258,7 @@ class PesterHandler(DefaultCommandHandler):
|
||||||
msg = msg.decode('iso-8859-1', 'ignore')
|
msg = msg.decode('iso-8859-1', 'ignore')
|
||||||
handle = nick[0:nick.find("!")]
|
handle = nick[0:nick.find("!")]
|
||||||
logging.info("---> recv \"NOTICE %s :%s\"" % (handle, msg))
|
logging.info("---> recv \"NOTICE %s :%s\"" % (handle, msg))
|
||||||
if handle == "ChanServ":
|
if handle == "ChanServ" and chan == self.parent.mainwindow.profile().handle and msg[0:2] == "[#":
|
||||||
if chan == self.parent.mainwindow.profile().handle and msg[0:2] == "[#":
|
|
||||||
self.parent.memoReceived.emit(msg[1:msg.index("]")], handle, msg)
|
self.parent.memoReceived.emit(msg[1:msg.index("]")], handle, msg)
|
||||||
else:
|
else:
|
||||||
self.parent.noticeReceived.emit(handle, msg)
|
self.parent.noticeReceived.emit(handle, msg)
|
||||||
|
|
Loading…
Reference in a new issue