From 8510948657dfe9bdd220aa91372e0142925f8693 Mon Sep 17 00:00:00 2001 From: ibrahim Date: Tue, 5 Apr 2016 18:24:31 +0300 Subject: [PATCH] #some_changes --- bot.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.lua b/bot.lua index 0e1e41f..1d5cfeb 100644 --- a/bot.lua +++ b/bot.lua @@ -290,6 +290,7 @@ if msg.date < os.time() - 5 then -- Ignore old msgs end if msg.text == "/unbroadcast" then add.broadcast[msg.from.id] = "false" + save_data('mico.db', add) end if msg.text ~= "/broadcast" and add.broadcast[msg.from.id] == "true" then if is_admin(msg) then @@ -346,7 +347,7 @@ elseif is_admin(msg) and msg.reply_to_message and msg.text == "/id" then elseif is_admin(msg) and msg.text == "/broadcast" then if add.broadcast == nil then - add.broadcast = {} + --add.broadcast = {} add.broadcast[msg.from.id] = "true" else add.broadcast[msg.from.id] = "true"