aboutsummaryrefslogtreecommitdiff
path: root/echo.rb
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-04-14 02:41:56 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-04-14 02:41:56 -0700
commit36ae5303a60a19dd3ad4c84f882ca893cce0d0e2 (patch)
tree39d7290f6434e892bba3efbb14aad45b6f55b179 /echo.rb
parentf35ae6761d9656ec51bd9176a83320c5dcf44278 (diff)
downloaddinobot-36ae5303a60a19dd3ad4c84f882ca893cce0d0e2.tar.gz
dinobot-36ae5303a60a19dd3ad4c84f882ca893cce0d0e2.tar.xz
Don't pass extraneous command name to commands.
Diffstat (limited to 'echo.rb')
-rw-r--r--echo.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/echo.rb b/echo.rb
index 4911ad0..34b9770 100644
--- a/echo.rb
+++ b/echo.rb
@@ -8,8 +8,8 @@ module Dinobot
@commands << :echo
end
- def echo(user, channel, message)
- [[:say, channel, message]]
+ def echo(user, channel, argument)
+ [[:say, channel, argument]]
end
end
end