Skip to content
This repository was archived by the owner on Oct 14, 2018. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions plugins/vote.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ function run(msg, matches)
return "Voting statistics :\n" .. votes_result
end
else
save_vote(tostring(msg.to.id), msg.from.print_name, tostring(tonumber(matches[2])))
return "Vote registered : " .. msg.from.print_name .. " " .. tostring(tonumber(matches [2]))
save_vote(tostring(msg.to.id), msg.from.print_name, string.lower(tostring(matches[2])))
return "Vote registered : " .. msg.from.print_name .. " " .. tostring(matches [2])
end
end

Expand All @@ -80,9 +80,9 @@ return {
patterns = {
"^!vot(ing) (reset)",
"^!vot(ing) (stats)",
"^!vot(e) ([0-9]+)$"
"^!vot(e) (.+)$"
},
run = run
}

end
end