]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
script plugin: store channels as strings
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 25 Jun 2008 19:33:24 +0000 (21:33 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 25 Jun 2008 19:33:43 +0000 (21:33 +0200)
data/rbot/plugins/script.rb

index 7a8c0c84696abc03ab36e2025a03c7577b148e8b..eae1493956192ab65e7f7cf25e12df23f5102143 100644 (file)
@@ -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