Skip to content

Commit

Permalink
Merge pull request #320 from Brawl345/patch-1
Browse files Browse the repository at this point in the history
fix wrong user id in banhammer when bot responds
  • Loading branch information
yagop committed Oct 23, 2015
2 parents 7dd15df + 3bca88a commit 672c2af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/banhammer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ local function run(msg, matches)
if matches[2] == 'user' then
local hash = 'whitelist:user#id'..matches[3]
redis:set(hash, true)
return 'User '..msg.from.id..' whitelisted'
return 'User '..matches[3]..' whitelisted'
end

if matches[2] == 'chat' then
Expand Down

0 comments on commit 672c2af

Please sign in to comment.