Fixe "set" Fehlermeldung, wenn keine Variable übergeben wurde

This commit is contained in:
Andreas Bielawski 2016-06-22 14:06:33 +02:00
parent 526702a2aa
commit e4da50b660

View File

@ -35,7 +35,7 @@ end
function set:action(msg) function set:action(msg)
local input = utilities.input(msg.text) local input = utilities.input(msg.text)
if not input:match('([^%s]+) (.+)') then if not input or not input:match('([^%s]+) (.+)') then
utilities.send_message(self, msg.chat.id, set.doc, true, msg.message_id, true) utilities.send_message(self, msg.chat.id, set.doc, true, msg.message_id, true)
return return
end end