Skip to content

Commit

Permalink
Update admin.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Imandaneshi committed Feb 24, 2016
1 parent c8d1842 commit 32ddfe0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions plugins/admin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,9 @@ local function run(msg,matches)
local SEED_gbans = http.request(url)
local jdat = json:decode(SEED_gbans)
for k,v in pairs(jdat) do
if not tonumber(v) == tonumber(our_id) and not is_admin2(v) then-- Ignore bot and admins :)
redis:hset('user:'..v, 'print_name', k)
redis:sadd('gbanned', v)
print(k, v.." Globally banned")
end
redis:hset('user:'..v, 'print_name', k)
banall_user(v)
print(k, v.." Globally banned")
end
end
return
Expand Down

0 comments on commit 32ddfe0

Please sign in to comment.