Skip to content

Commit

Permalink
Only display each of the commands once in the command command.
Browse files Browse the repository at this point in the history
  • Loading branch information
LindseyB committed Mar 14, 2012
1 parent b4851f2 commit a36eb1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/xombot/plugins/commands.rb
Expand Up @@ -7,7 +7,7 @@ def execute(m)
XOmBot.plugins.each do |_,p| XOmBot.plugins.each do |_,p|
p.commands.each do |k,v| p.commands.each do |k,v|
short_name = k.inspect.to_s[1..-2][/\w+/] short_name = k.inspect.to_s[1..-2][/\w+/]
commands << short_name commands << short_name unless commands.include?(short_name)
if v[:help] if v[:help]
# m.reply "!#{} -- #{v[:help]}" # m.reply "!#{} -- #{v[:help]}"
end end
Expand Down

0 comments on commit a36eb1e

Please sign in to comment.