Commit 7e855bbd756d83b540ab4a100e747ed4d9c0d9d7
1 parent
891496590f
Exists in
master
and in
1 other branch
config.max_length
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
lib/transport.js
... | ... | @@ -21,7 +21,7 @@ async function sleep(ms) { |
21 | 21 | async function sendToModem(partner, msg, modem, parentXid, part) { |
22 | 22 | const xid = parentXid || uniqid(); |
23 | 23 | |
24 | - const [msgHead, msgTail] = messageSplitter(msg.trim(), 140); | |
24 | + const [msgHead, msgTail] = messageSplitter(msg.trim(), Number(config.max_length) || 140); | |
25 | 25 | if (!msgHead) { |
26 | 26 | return; |
27 | 27 | } |