Browse Source

Add long message splitting in crosslink

wip
Maurizio Porrato 9 years ago
parent
commit
79a7fd832d
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      twisted/plugins/frncrosslink.py

+ 5
- 2
twisted/plugins/frncrosslink.py View File

@@ -61,8 +61,11 @@ class FRNCrosslinkClient(FRNClient):
ss,
c['on'],
))
reply = '<br/>'.join(cl)
self.sendTextMessage(client, reply)
sm = [cl[i*15:(i+1)*15]
for i in range((len(cl)+14)/15)]
for m in sm:
reply = '<br>'.join(m)
self.sendTextMessage(client, reply)

def decodeTX(self, my_id):
log.msg("Got TX ack for %s" % self.user.ON)

Loading…
Cancel
Save