diff --git a/client/view/img/homer.gif b/client/view/img/homer.gif new file mode 100644 index 0000000..646f0ed Binary files /dev/null and b/client/view/img/homer.gif differ diff --git a/client/view/start.py b/client/view/start.py index 2e1ed5b..726791d 100755 --- a/client/view/start.py +++ b/client/view/start.py @@ -103,6 +103,11 @@ class privateMessage () : sb.setValue(sb.maximum()) def ShowMessageAsTextPm(self,txt) : + + if txt.split(" ")[0] == "SUCC_PRIVATE_DISCUSSION_ACCEPTED ": + self.message_buffer2 += '
Chalange Accepted ! ' + + if txt.split(" ")[0] == "NEW_MSG" : self.message_buffer2 += '
' + self.getTimeStamp() + ' < '+txt.split(" ")[1] +' > ' + self.htmlToText(' '.join(txt.split(" ")[2:])) + '' @@ -140,7 +145,8 @@ class start(QtGui.QDialog): html = html.replace('(y)', 'like face') html = html.replace('8|', 'lunette face') html = html.replace('3:)', 'hell face') - html = html.replace(':pedobear', 'hell face') + html = html.replace(':pedobear', 'hell face') + html = html.replace(':homer', 'homer face') return html @@ -179,7 +185,9 @@ class start(QtGui.QDialog): - + if txt.split(" ")[0] == "SUCC_PRIVATE_DISCUSSION_ACCEPTED": + self.message_buffer += '
PRIVATE DISCUSSION ? challenge accepted ! ' + if txt.split(" ")[0] == "SUCC_INVITED" : self.ShowMessageOK("invitation requested") self.admin = privateMessage(self,self.s,self.demande) @@ -289,8 +297,7 @@ class start(QtGui.QDialog): self.ui.listNames.itemActivated.connect(self.someMethod) def someMethod(self,item): - - nom = item.text() + nom = item.text().replace("SUCC_INVITED","") cmdPM = "/askpm "+nom try: self.s.send(cmdPM.encode())