Add dirty hack to make crosslink "last" command work

This commit is contained in:
Maurizio Porrato 2010-09-05 17:08:59 +02:00
parent 9eb51e9daf
commit fc2b35a6ea
1 changed files with 8 additions and 3 deletions

View File

@ -97,9 +97,14 @@ class FRNCrosslinkClient(FRNClient):
global talking, lastMessages
self.txReq = False
self.txOk = False
if talking == self:
lastMessages.insert(0, self.user.ON)
lastMessages = lastMessages[:5]
if talking is not None: # FIXME: This is not the right place
l = talking.user.ON
if len(lastMessages) > 0:
if lastMessages[0] == l:
l = None
if l is not None:
lastMessages.insert(0, l)
lastMessages = lastMessages[:5]
talking = None
self.stopTransmission()