summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-08-28 17:11:46 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-08-28 17:11:46 +0000
commit4a86158144a13bc901222442ccd2db9c2bbd6bb0 (patch)
tree4697fdb788bca6352f91158b062c59506436f946 /lib
parentc76db2ff694d65e4391b7ec6d59c58aa0330cefe (diff)
basics botmodule: use #to_s to stringify multiword parameters
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/core/basics.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rbot/core/basics.rb b/lib/rbot/core/basics.rb
index bd37839c..c770cda7 100644
--- a/lib/rbot/core/basics.rb
+++ b/lib/rbot/core/basics.rb
@@ -40,11 +40,11 @@ class BasicsModule < CoreBotModule
end
def bot_quit(m, param)
- @bot.quit(param[:msg] ? param[:msg].join(" ") : nil)
+ @bot.quit param[:msg].to_s
end
def bot_restart(m, param)
- @bot.restart(param[:msg] ? param[:msg].join(" ") : nil)
+ @bot.restart param[:msg].to_s
end
def bot_hide(m, param)
@@ -52,11 +52,11 @@ class BasicsModule < CoreBotModule
end
def bot_say(m, param)
- @bot.say param[:where], param[:what].join(" ")
+ @bot.say param[:where], param[:what].to_s
end
def bot_action(m, param)
- @bot.action param[:where], param[:what].join(" ")
+ @bot.action param[:where], param[:what].to_s
end
def bot_mode(m, param)