From: Giuseppe Bilotta Date: Fri, 25 Aug 2006 23:41:46 +0000 (+0000) Subject: Adapt script plugin to new message mappper. Whitespace in code is now preserved X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=ec6916f0d4c6b4b6e63b39e44daa136fe6614d1d;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git Adapt script plugin to new message mappper. Whitespace in code is now preserved --- diff --git a/data/rbot/plugins/script.rb b/data/rbot/plugins/script.rb index f559addd..ff45df0b 100644 --- a/data/rbot/plugins/script.rb +++ b/data/rbot/plugins/script.rb @@ -79,7 +79,7 @@ class ScriptPlugin < Plugin return end - code = params[:code].join( " " ) + code = params[:code].to_s nick = m.sourcenick created = Time.new.strftime '%Y/%m/%d %H:%m' channel = m.target