From 6c3284bb4f4536b051b1357bd91444e8924542e0 Mon Sep 17 00:00:00 2001 From: DonRenando Date: Mon, 6 Apr 2015 20:09:58 +0200 Subject: [PATCH] bwaaaaaa ! --- client/view/img/homer.gif | Bin 0 -> 1014 bytes client/view/start.py | 15 +++++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 client/view/img/homer.gif diff --git a/client/view/img/homer.gif b/client/view/img/homer.gif new file mode 100644 index 0000000000000000000000000000000000000000..646f0ed8fe2177af244ff98cdc0353168fdf3da1 GIT binary patch literal 1014 zcmW+#O-Phc6usr>%s7tor_PMdjE*yI%uT%v!xkErW)?*mMHZy=kTw-qK^P5Wwh6z5SkpvZ^L^Z@)6l0{=qD4hzkhJKBh}(JJg^%}L?z`unbME)G@7Uh7`B;RK z^vh0&to3BABa1AXokP5v%j8xI3JPpCTVY{gQBjfIZg)5wPN%cDxY*@#m6VjY-R{!T zQjf>u^?H3ipWp8f1OjDcW##4N6%`f1U@#O4g~Q>>%F3#$sz@XfjYea!Sao%EO-)Ta z9zp@zZ01~jnH%tngI5lTueB^zZJi%co0v{Y<_ zf(43NNv)-3=msg=m8>Ld$#*3^YRoWZp&NF969hvcSOW~C(Ft1Mfx*BA zG@Ip^+bAPPFm?qap$}t`X=Y=pwPvegwq=>n=6B`d*?`^x)aHPJ+na^|$H}(y8b?lpbda>oC z|J#zkf6q7%?H+Q{m)CbX+c%sUTj<|ERo@zOkNGA$$9CPF{jl^Zu{hEf9!Z|KztTE# ze0goC<=otxiS;XAA2jD1a!<~GzxU78w7PZrtSeuBH8kEgf3Uk^`0>ogqc3kd-#**2 p_@nnm&*9#M(58XCIrr4_?(o2;1DVr1+b?uIn$0ag3>Mj_`9D-mv5Noz literal 0 HcmV?d00001 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())