From 03d772018f0fdfe4bcc31f8124780db89744fff9 Mon Sep 17 00:00:00 2001 From: Ale32bit Date: Wed, 30 Dec 2015 17:34:25 +0100 Subject: [PATCH] Update sms.lua --- src/apps/sms.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/apps/sms.lua b/src/apps/sms.lua index eed2e0b..6f012f9 100644 --- a/src/apps/sms.lua +++ b/src/apps/sms.lua @@ -175,7 +175,11 @@ local function recMsg() end while true do - stream = http.post(server.."update.php",head.."&to="..sendTo) + if sendTo == "" then + stream = http.post(server.."update.php?new",head) + else + stream = http.post(server.."update.php",head.."&to="..sendTo) + end newMessages = {} line = stream.readLine() repeat