]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/url.rb
Suppress the warnings for Struct redefinition on rescan
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / url.rb
index b04beb871be52588c98d45145b030eb1fe8d915d..65d75eabd098fffa4bbd51c922b5c665e0efa8d0 100644 (file)
@@ -2,7 +2,7 @@ require 'net/http'
 require 'uri'
 require 'cgi'
 
-Url = Struct.new("Url", :channel, :nick, :time, :url)
+Url = Struct.new("Url", :channel, :nick, :time, :url) unless defined?(Url)
 TITLE_RE = /<\s*?title\s*?>(.+?)<\s*?\/title\s*?>/im
 
 UNESCAPE_TABLE = {