From ece039be154ec3f4411f264d5cfef24f0c6bcaa0 Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Mon, 1 Aug 2016 02:15:41 +0200 Subject: [PATCH] ID: Rechne Bot mit in die Liste ein, aber schreibe Hinweis am Ende, dass Bots nicht miteinberechnet werden (da Bots auch von Bots ignoriert werden) --- otouto/plugins/id.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/otouto/plugins/id.lua b/otouto/plugins/id.lua index 55bd79a..29726cb 100644 --- a/otouto/plugins/id.lua +++ b/otouto/plugins/id.lua @@ -103,7 +103,7 @@ function id:action(msg) end end local result = id:get_member_count(self, msg, chat_id) - local member_count = result.result - 1 -- minus the bot + local member_count = result.result if member_count == 1 then member_count = 'ist *1 Mitglied' else @@ -119,7 +119,7 @@ function id:action(msg) text = text..'*'..user.name..'* `['..user.id..']`\n' end end - utilities.send_reply(self, msg, text, true) + utilities.send_reply(self, msg, text..'_(Bots sind nicht gelistet)_', true) end end