From f358b3c1c6fad73b6de59085b6bf5e4a788233a2 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Mon, 24 Jul 2006 14:55:32 +0000 Subject: Revert the Struct.new-related changes because they don't do what we want --- data/rbot/plugins/quotes.rb | 2 +- data/rbot/plugins/roulette.rb | 2 +- data/rbot/plugins/seen.rb | 2 +- data/rbot/plugins/url.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'data') diff --git a/data/rbot/plugins/quotes.rb b/data/rbot/plugins/quotes.rb index 30e341bf..390b98f7 100644 --- a/data/rbot/plugins/quotes.rb +++ b/data/rbot/plugins/quotes.rb @@ -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) unless defined?(Struct::Quote) +Quote = Struct.new("Quote", :num, :date, :source, :quote) class QuotePlugin < Plugin def initialize diff --git a/data/rbot/plugins/roulette.rb b/data/rbot/plugins/roulette.rb index f9792740..e3bb25f6 100644 --- a/data/rbot/plugins/roulette.rb +++ b/data/rbot/plugins/roulette.rb @@ -1,4 +1,4 @@ -RouletteHistory = Struct.new("RouletteHistory", :games, :shots, :deaths, :misses, :wins) unless defined?(Struct::RouletteHistory) +RouletteHistory = Struct.new("RouletteHistory", :games, :shots, :deaths, :misses, :wins) class RoulettePlugin < Plugin def initialize diff --git a/data/rbot/plugins/seen.rb b/data/rbot/plugins/seen.rb index 3c921838..aec5a064 100644 --- a/data/rbot/plugins/seen.rb +++ b/data/rbot/plugins/seen.rb @@ -1,4 +1,4 @@ -Saw = Struct.new("Saw", :nick, :time, :type, :where, :message) unless defined?(Seen::Saw) +Saw = Struct.new("Saw", :nick, :time, :type, :where, :message) class SeenPlugin < Plugin def help(plugin, topic="") diff --git a/data/rbot/plugins/url.rb b/data/rbot/plugins/url.rb index 45949f50..b04beb87 100644 --- a/data/rbot/plugins/url.rb +++ b/data/rbot/plugins/url.rb @@ -2,7 +2,7 @@ require 'net/http' require 'uri' require 'cgi' -Url = Struct.new("Url", :channel, :nick, :time, :url) unless defined?(Struct::Url) +Url = Struct.new("Url", :channel, :nick, :time, :url) TITLE_RE = /<\s*?title\s*?>(.+?)<\s*?\/title\s*?>/im UNESCAPE_TABLE = { -- cgit v1.2.3