]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/quotes.rb
Suppress the warnings for Struct redefinition on rescan
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / quotes.rb
index 917c6901461f9f464f269a1582c8ac869b679a7d..4695fa100472e30bf83e0bbd9879350bb133ab9f 100644 (file)
@@ -1,6 +1,6 @@
 # GB: Ok, we *really* need to switch to db for this plugin too
 
-Quote = Struct.new("Quote", "num", "date", "source", "quote")
+Quote = Struct.new("Quote", :num, :date, :source, :quote) unless defined?(Quote)
 
 class QuotePlugin < Plugin
   def initialize