From 4a86158144a13bc901222442ccd2db9c2bbd6bb0 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 28 Aug 2007 17:11:46 +0000 Subject: basics botmodule: use #to_s to stringify multiword parameters --- lib/rbot/core/basics.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/rbot') 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) -- cgit v1.2.3