From ea043c2a94acb2f1175c21a754f4e7b4813c1293 Mon Sep 17 00:00:00 2001 From: Dpeta Date: Tue, 23 Mar 2021 22:58:58 +0100 Subject: [PATCH] Fixed quirks & added numeric event because why not --- menus.py | 6 +++--- oyoyo/ircevents.py | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/menus.py b/menus.py index 225c6f9..77b78ce 100644 --- a/menus.py +++ b/menus.py @@ -41,7 +41,7 @@ class PesterQuirkList(QtWidgets.QTreeWidget): self.mainwindow = mainwindow self.setStyleSheet("background:black; color:white;") - self.itemChanged[QTreeWidgetItem, int].connect(self.changeCheckState) + self.itemChanged[QtWidgets.QTreeWidgetItem, int].connect(self.changeCheckState) for q in mainwindow.userprofile.quirks: item = PesterQuirkItem(q) @@ -291,7 +291,7 @@ class PesterQuirkTypes(QtWidgets.QDialog): self.next = QtWidgets.QPushButton("Next", self) self.next.setDefault(True) - self.__next__.clicked.connect(self.nextPage) + self.next.clicked.connect(self.nextPage) self.back = QtWidgets.QPushButton("Back", self) self.back.setEnabled(False) self.back.clicked.connect(self.backPage) @@ -300,7 +300,7 @@ class PesterQuirkTypes(QtWidgets.QDialog): layout_2 = QtWidgets.QHBoxLayout() layout_2.setAlignment(QtCore.Qt.AlignRight) layout_2.addWidget(self.back) - layout_2.addWidget(self.__next__) + layout_2.addWidget(self.next) layout_2.addSpacing(5) layout_2.addWidget(self.cancel) diff --git a/oyoyo/ircevents.py b/oyoyo/ircevents.py index 11a8583..fc59887 100644 --- a/oyoyo/ircevents.py +++ b/oyoyo/ircevents.py @@ -125,6 +125,7 @@ numeric_events = { "393": "users", "394": "endofusers", "395": "nousers", + "396": "hosthidden", "401": "nosuchnick", "402": "nosuchserver", "403": "nosuchchannel",