Add dirty hack to make crosslink "last" command work
This commit is contained in:
parent
9eb51e9daf
commit
fc2b35a6ea
|
@ -97,9 +97,14 @@ class FRNCrosslinkClient(FRNClient):
|
||||||
global talking, lastMessages
|
global talking, lastMessages
|
||||||
self.txReq = False
|
self.txReq = False
|
||||||
self.txOk = False
|
self.txOk = False
|
||||||
if talking == self:
|
if talking is not None: # FIXME: This is not the right place
|
||||||
lastMessages.insert(0, self.user.ON)
|
l = talking.user.ON
|
||||||
lastMessages = lastMessages[:5]
|
if len(lastMessages) > 0:
|
||||||
|
if lastMessages[0] == l:
|
||||||
|
l = None
|
||||||
|
if l is not None:
|
||||||
|
lastMessages.insert(0, l)
|
||||||
|
lastMessages = lastMessages[:5]
|
||||||
talking = None
|
talking = None
|
||||||
self.stopTransmission()
|
self.stopTransmission()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue