aboutsummaryrefslogtreecommitdiff
path: root/module.rb
diff options
context:
space:
mode:
Diffstat (limited to 'module.rb')
-rw-r--r--module.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/module.rb b/module.rb
index 192aea4..082fc83 100644
--- a/module.rb
+++ b/module.rb
@@ -11,7 +11,7 @@ module Dinobot
def call(user, channel, message)
command, argument = message.split(' ', 3)[1..2]
- if @commands.include?(command.intern)
+ if @commands.map { |x| x.to_s }.include?(command)
send(command, user, channel, argument)
end
end