From a81c17d2390affe0eef26ef9906c762ac86063cc Mon Sep 17 00:00:00 2001 From: Kiooeht Date: Tue, 21 Feb 2012 20:37:31 -0800 Subject: [PATCH] Remove stupid "Netsplit: None" message --- memos.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/memos.py b/memos.py index df03a10..8aa2350 100644 --- a/memos.py +++ b/memos.py @@ -921,11 +921,12 @@ class PesterMemo(PesterConvo): @QtCore.pyqtSlot() def dumpNetsplit(self): - chum = self.mainwindow.profile() - systemColor = QtGui.QColor(self.mainwindow.theme["memos/systemMsgColor"]) - msg = chum.memonetsplitmsg(systemColor, self.netsplit) - self.textArea.append(convertTags(msg)) - self.mainwindow.chatlog.log(self.channel, msg) + if (len(self.netsplit) > 0): + chum = self.mainwindow.profile() + systemColor = QtGui.QColor(self.mainwindow.theme["memos/systemMsgColor"]) + msg = chum.memonetsplitmsg(systemColor, self.netsplit) + self.textArea.append(convertTags(msg)) + self.mainwindow.chatlog.log(self.channel, msg) del self.netsplit @QtCore.pyqtSlot(QtCore.QString, QtCore.QString, QtCore.QString)