lib/scamp.rb in scamp-0.0.3 vs lib/scamp.rb in scamp-0.0.4
- old
+ new
@@ -13,11 +13,11 @@
class Scamp
include Connection
include Channels
include Users
- attr_accessor :channels, :user_cache, :channel_cache, :matchers, :api_key, :subdomain, :logger, :verbose, :first_match_only
+ attr_accessor :channels, :user_cache, :channel_cache, :matchers, :api_key, :subdomain, :logger, :verbose, :first_match_only, :channels_to_join
def initialize(options = {})
options ||= {}
raise ArgumentError, "You must pass an API key" unless options[:api_key]
raise ArgumentError, "You must pass a subdomain" unless options[:subdomain]
@@ -28,10 +28,11 @@
send(s, v)
else
logger.warn "Scamp initialized with #{k.inspect} => #{v.inspect} but NO UNDERSTAND!"
end
end
-
+
+ @channels_to_join = []
@channels = {}
@user_cache = {}
@channel_cache = {}
@matchers ||= []
end