Bug fix: Don't give a cease message when someone is absconding

This commit is contained in:
Kiooeht 2011-06-28 14:46:40 -07:00
parent 8427ea8fcc
commit e5040f9b12

View file

@ -564,13 +564,13 @@ class PesterConvo(QtGui.QFrame):
def updateMood(self, mood, unblocked=False, old=None): def updateMood(self, mood, unblocked=False, old=None):
syscolor = QtGui.QColor(self.mainwindow.theme["convo/systemMsgColor"]) syscolor = QtGui.QColor(self.mainwindow.theme["convo/systemMsgColor"])
if mood.name() == "offline" and self.chumopen == True and not unblocked: #~ if mood.name() == "offline" and self.chumopen == True and not unblocked:
self.mainwindow.ceasesound.play() #~ self.mainwindow.ceasesound.play()
msg = self.chum.pestermsg(self.mainwindow.profile(), syscolor, self.mainwindow.theme["convo/text/ceasepester"]) #~ msg = self.chum.pestermsg(self.mainwindow.profile(), syscolor, self.mainwindow.theme["convo/text/ceasepester"])
self.textArea.append(convertTags(msg)) #~ self.textArea.append(convertTags(msg))
self.mainwindow.chatlog.log(self.title(), msg) #~ self.mainwindow.chatlog.log(self.title(), msg)
self.chumopen = False #~ self.chumopen = False
elif old and old.name() != mood.name(): if old and old.name() != mood.name():
msg = self.chum.moodmsg(mood, syscolor, self.mainwindow.theme) msg = self.chum.moodmsg(mood, syscolor, self.mainwindow.theme)
self.textArea.append(convertTags(msg)) self.textArea.append(convertTags(msg))
self.mainwindow.chatlog.log(self.title(), msg) self.mainwindow.chatlog.log(self.title(), msg)