From e4da50b6603547fa3d8ddb241fa802553d6083da Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Wed, 22 Jun 2016 14:06:33 +0200 Subject: [PATCH] =?UTF-8?q?Fixe=20"set"=20Fehlermeldung,=20wenn=20keine=20?= =?UTF-8?q?Variable=20=C3=BCbergeben=20wurde?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- otouto/plugins/set.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/otouto/plugins/set.lua b/otouto/plugins/set.lua index 86d53f4..7f15bbb 100644 --- a/otouto/plugins/set.lua +++ b/otouto/plugins/set.lua @@ -35,7 +35,7 @@ end function set:action(msg) 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) return end