From b55d430cd22d17e687208d59b63963b4605f09e5 Mon Sep 17 00:00:00 2001 From: topkecleon Date: Thu, 19 May 2016 02:42:11 -0400 Subject: [PATCH] Minor bug fix. Glad I checked the git diff. administration.lua: 1.9 - Added flag antihammer. Groups with antihammer enabled will not be affected by global bans. However, users who are hammer'd from an antihammer group will also be banned locally. Bot will now also attempt to kick via bot API before using tg. Added autobanning after (default) 3 autokicks. Threshold onfigurable with antiflood. Autokick counters reset within twenty-four hours. Merged antisquig action into generic. There is no automatic migration; simply add the following to database.administration: autokick_timer = 0 groups[*].flags[6] = false groups[*].autoban = 3 groups[*].autokicks = {} --- plugins/administration.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugins/administration.lua b/plugins/administration.lua index 4b823fc..4c098b9 100644 --- a/plugins/administration.lua +++ b/plugins/administration.lua @@ -18,7 +18,12 @@ hammer group will also be banned locally. Bot will now also attempt to kick via bot API before using tg. Added autobanning after (default) 3 autokicks. Threshold onfigurable with antiflood. Autokick counters reset within twenty- - four hours. Merged antisquig action into generic. + four hours. Merged antisquig action into generic. There is no automatic + migration; simply add the following to database.administration: + autokick_timer = 0 + groups[*].flags[6] = false + groups[*].autoban = 3 + groups[*].autokicks = {} ]]-- @@ -175,7 +180,7 @@ function administration:mod_format(id) local name = utilities.build_name(user.first_name, user.last_name) name = utilities.markdown_escape(name) local output = '• ' .. name .. ' `[' .. id .. ']`\n' - return outputbb + return output end function administration:get_desc(chat_id)