diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-07-24 12:35:56 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-07-24 12:35:56 +0000 |
commit | 127d9152199cac9b431586bb7b17f6f297b6864f (patch) | |
tree | 60cb518c4e1ea2bb6336a2fd1074261e354df97a /data/rbot | |
parent | 1ac2e000c87164cad040b2d426ba947499df92af (diff) |
[257] was moot, this is the propert way to prevent Structs from being created twice
Diffstat (limited to 'data/rbot')
-rw-r--r-- | data/rbot/plugins/quotes.rb | 2 | ||||
-rw-r--r-- | data/rbot/plugins/roulette.rb | 2 | ||||
-rw-r--r-- | data/rbot/plugins/seen.rb | 2 | ||||
-rw-r--r-- | data/rbot/plugins/url.rb | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/data/rbot/plugins/quotes.rb b/data/rbot/plugins/quotes.rb index 4695fa10..30e341bf 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?(Quote) +Quote = Struct.new("Quote", :num, :date, :source, :quote) unless defined?(Struct::Quote) class QuotePlugin < Plugin def initialize diff --git a/data/rbot/plugins/roulette.rb b/data/rbot/plugins/roulette.rb index 85248481..f9792740 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?(RouletteHistory) +RouletteHistory = Struct.new("RouletteHistory", :games, :shots, :deaths, :misses, :wins) unless defined?(Struct::RouletteHistory) class RoulettePlugin < Plugin def initialize diff --git a/data/rbot/plugins/seen.rb b/data/rbot/plugins/seen.rb index 094a9b3d..3c921838 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?(Saw) +Saw = Struct.new("Saw", :nick, :time, :type, :where, :message) unless defined?(Seen::Saw) class SeenPlugin < Plugin def help(plugin, topic="") diff --git a/data/rbot/plugins/url.rb b/data/rbot/plugins/url.rb index 65d75eab..45949f50 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?(Url) +Url = Struct.new("Url", :channel, :nick, :time, :url) unless defined?(Struct::Url) TITLE_RE = /<\s*?title\s*?>(.+?)<\s*?\/title\s*?>/im UNESCAPE_TABLE = { |