Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Only display each of the commands once in the command command.

  • Loading branch information...
commit a36eb1ee217a525cea257eb1b3556b4387cffabb 1 parent b4851f2
@LindseyB authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/xombot/plugins/commands.rb
View
2  lib/xombot/plugins/commands.rb
@@ -7,7 +7,7 @@ def execute(m)
XOmBot.plugins.each do |_,p|
p.commands.each do |k,v|
short_name = k.inspect.to_s[1..-2][/\w+/]
- commands << short_name
+ commands << short_name unless commands.include?(short_name)
if v[:help]
# m.reply "!#{} -- #{v[:help]}"
end
Please sign in to comment.
Something went wrong with that request. Please try again.