diff --git a/irc.py b/irc.py index acdde3d..7615e57 100644 --- a/irc.py +++ b/irc.py @@ -810,6 +810,10 @@ class PesterHandler(DefaultCommandHandler): self.parent.cannotSendToChan.emit(channel, msg) def toomanypeeps(self, *stuff): self.parent.tooManyPeeps.emit() + #def badchanmask(channel, *args): + # # Channel name is not valid. + # msg = ' '.join(args) + # self.parent.forbiddenchannel.emit(channel, msg) def forbiddenchannel(self, server, handle, channel, msg): # Channel is forbidden. self.parent.forbiddenchannel.emit(channel, msg) diff --git a/toast.py b/toast.py index 4b5a657..a687ef1 100644 --- a/toast.py +++ b/toast.py @@ -300,8 +300,9 @@ class PesterToast(QtWidgets.QWidget, DefaultToast): @QtCore.pyqtSlot(QtCore.QVariant) def updateBottomLeftAnimation(self, value): #p = QtWidgets.QApplication.desktop().availableGeometry(self).bottomRight() - for screen in QtWidgets.QApplication.screens(): - p = screen.availableGeometry().bottomRight() + screens = QtWidgets.QApplication.screens() + screen = screens[0] # Main window? + p = screen.availableGeometry().bottomRight() val = (self.height())/100 # Does type casting this to an int have any negative consequences? self.move(int(p.x()-self.width()), int(p.y() - (value * val) +1))