X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fscript.rb;h=eae1493956192ab65e7f7cf25e12df23f5102143;hb=6188a50d4ba6171481224bc897b45facd286f037;hp=7a8c0c84696abc03ab36e2025a03c7577b148e8b;hpb=1371de4f0799590c5fc19889fef137acdc53a020;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/data/rbot/plugins/script.rb b/data/rbot/plugins/script.rb index 7a8c0c84..eae14939 100644 --- a/data/rbot/plugins/script.rb +++ b/data/rbot/plugins/script.rb @@ -112,7 +112,7 @@ class ScriptPlugin < Plugin code = params[:code].to_s nick = m.sourcenick created = Time.new.strftime '%Y/%m/%d %H:%m' - channel = m.target + channel = m.target.to_s command = Command.new( code, nick, created, channel ) @commands[name] = command