X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fscript.rb;fp=data%2Frbot%2Fplugins%2Fscript.rb;h=eae1493956192ab65e7f7cf25e12df23f5102143;hb=7a128ab6457c9b79ed31a5562be98e1718bfaf80;hp=7a8c0c84696abc03ab36e2025a03c7577b148e8b;hpb=2962912178d5def0f3f4b4d8a42b726bb43e228d;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