From 7e855bbd756d83b540ab4a100e747ed4d9c0d9d7 Mon Sep 17 00:00:00 2001 From: Adhidarma Hadiwinoto <me@adhisimon.org> Date: Thu, 5 Dec 2019 18:18:31 +0700 Subject: [PATCH] config.max_length --- lib/transport.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/transport.js b/lib/transport.js index e2771e4..b01cd51 100644 --- a/lib/transport.js +++ b/lib/transport.js @@ -21,7 +21,7 @@ async function sleep(ms) { async function sendToModem(partner, msg, modem, parentXid, part) { const xid = parentXid || uniqid(); - const [msgHead, msgTail] = messageSplitter(msg.trim(), 140); + const [msgHead, msgTail] = messageSplitter(msg.trim(), Number(config.max_length) || 140); if (!msgHead) { return; } -- 1.9.0