]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
basics botmodule: use #to_s to stringify multiword parameters
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 28 Aug 2007 17:11:46 +0000 (17:11 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 28 Aug 2007 17:11:46 +0000 (17:11 +0000)
lib/rbot/core/basics.rb

index bd37839c128825fa55c915c75f1d1e9bb8dc1dd6..c770cda7952b96d44c0c6e504ef2d3030334392c 100644 (file)
@@ -40,11 +40,11 @@ class BasicsModule < CoreBotModule
   end\r
 \r
   def bot_quit(m, param)\r
-    @bot.quit(param[:msg] ? param[:msg].join(" ") : nil)\r
+    @bot.quit param[:msg].to_s\r
   end\r
 \r
   def bot_restart(m, param)\r
-    @bot.restart(param[:msg] ? param[:msg].join(" ") : nil)\r
+    @bot.restart param[:msg].to_s\r
   end\r
 \r
   def bot_hide(m, param)\r
@@ -52,11 +52,11 @@ class BasicsModule < CoreBotModule
   end\r
 \r
   def bot_say(m, param)\r
-    @bot.say param[:where], param[:what].join(" ")\r
+    @bot.say param[:where], param[:what].to_s\r
   end\r
 \r
   def bot_action(m, param)\r
-    @bot.action param[:where], param[:what].join(" ")\r
+    @bot.action param[:where], param[:what].to_s\r
   end\r
 \r
   def bot_mode(m, param)\r