From 88d53b9161e2087e7830abb358d3f414d05ba56e Mon Sep 17 00:00:00 2001 From: Hydrothermal Date: Sun, 15 Mar 2020 19:13:18 -0400 Subject: [PATCH] Only accept nick change notices from NickServ --- pesterchum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pesterchum.py b/pesterchum.py index 1ef7fae..5824eb2 100644 --- a/pesterchum.py +++ b/pesterchum.py @@ -2031,7 +2031,7 @@ class PesterWindow(MovingWindow): def deliverNotice(self, handle, msg): h = unicode(handle) m = unicode(msg) - if m.startswith("Your nickname is now being changed to"): + if h.upper() == "NICKSERV" and m.startswith("Your nickname is now being changed to"): changedto = m[39:-1] msgbox = QtGui.QMessageBox() msgbox.setText("This chumhandle has been registered; you may not use it.")