diff --git a/CHANGELOG.mkdn b/CHANGELOG.mkdn index aff0332..616137f 100644 --- a/CHANGELOG.mkdn +++ b/CHANGELOG.mkdn @@ -47,6 +47,7 @@ CHANGELOG * Flash the taskbar on new messages - Kiooeht [evacipatedBox] * Third beep sound for when your initials are mentioned in memos - Kiooeht [evacipatedBox] (Idea: Lexi [lexicalNuance]) * Ctrl + click to copy links - Kiooeht [evacipatedBox] +* Say something when server is full - Kiooeht [evacipatedBox] * Bug fixes * Logviewer updates - Kiooeht [evacipatedBox] * Memo scrollbar thing - Kiooeht [evacipatedBox] diff --git a/irc.py b/irc.py index 397b3f1..fcbea3c 100644 --- a/irc.py +++ b/irc.py @@ -283,6 +283,7 @@ class PesterIRC(QtCore.QThread): userPresentUpdate = QtCore.pyqtSignal(QtCore.QString, QtCore.QString, QtCore.QString) cannotSendToChan = QtCore.pyqtSignal(QtCore.QString, QtCore.QString) + tooManyPeeps = QtCore.pyqtSignal() class PesterHandler(DefaultCommandHandler): def notice(self, nick, chan, msg): @@ -467,6 +468,8 @@ class PesterHandler(DefaultCommandHandler): self.parent.modesUpdated.emit(channel, modes) def cannotsendtochan(self, server, handle, channel, msg): self.parent.cannotSendToChan.emit(channel, msg) + def toomanypeeps(self, *stuff): + self.parent.tooManyPeeps.emit() def getMood(self, *chums): chumglub = "GETMOOD " diff --git a/oyoyo/ircevents.py b/oyoyo/ircevents.py index 623530f..6d8969b 100644 --- a/oyoyo/ircevents.py +++ b/oyoyo/ircevents.py @@ -23,6 +23,7 @@ numeric_events = { "003": "created", "004": "myinfo", "005": "featurelist", # XXX + "010": "toomanypeeps", "200": "tracelink", "201": "traceconnecting", "202": "tracehandshake", diff --git a/pesterchum.py b/pesterchum.py index 504d4e5..5da6356 100644 --- a/pesterchum.py +++ b/pesterchum.py @@ -2843,6 +2843,13 @@ class PesterWindow(MovingWindow): # show context menu i guess #self.showTrayContext.emit() + @QtCore.pyqtSlot() + def tooManyPeeps(self): + msg = QtGui.QMessageBox(self) + msg.setText("D: TOO MANY PEOPLE!!!") + msg.setInformativeText("The server has hit max capacity. Please try again later.") + msg.show() + pcUpdate = QtCore.pyqtSignal(QtCore.QString, QtCore.QString) closeToTraySignal = QtCore.pyqtSignal() newConvoStarted = QtCore.pyqtSignal(QtCore.QString, bool, name="newConvoStarted") @@ -3064,7 +3071,9 @@ class MainProgram(QtCore.QObject): ('modesUpdated(QString, QString)', 'modesUpdated(QString, QString)'), ('cannotSendToChan(QString, QString)', - 'cannotSendToChan(QString, QString)') + 'cannotSendToChan(QString, QString)'), + ('tooManyPeeps()', + 'tooManyPeeps()') ] def connectWidgets(self, irc, widget): self.connect(irc, QtCore.SIGNAL('finished()'),