From 6402cc241da9318a48627468dd6aac064031468b Mon Sep 17 00:00:00 2001 From: dupie Date: Sat, 4 Jul 2015 10:55:18 -0400 Subject: [PATCH] bugfixes --- bot.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.lua b/bot.lua index 2df2b9f..5af0dce 100644 --- a/bot.lua +++ b/bot.lua @@ -10,7 +10,7 @@ VERSION = 2.01 function on_msg_receive(msg) - if msg.date < os.time() -5 then return end -- don't react to old messages + if msg.date < os.time() - 5 then return end -- don't react to old messages if not msg.text then return end -- don't react to media messages if msg.forward_from then return end -- don't react to forwarded messages