# File lib/net/irc/message/serverconfig.rb, line 27 def [](key) @config[key] end
# File lib/net/irc/message/serverconfig.rb, line 9 def set(arg) params = arg.kind_of?(Net::IRC::Message) ? arg.to_a : arg.split(" ") params[1..-1].each do |s| case s when /\A:?are supported by this server\z/ # Ignore when /\A([^=]+)=(.*)\z/ key = Regexp.last_match[1].to_sym value = Regexp.last_match[2] @config[key] = value @mode_parser.set(key, value) if key == :CHANMODES || key == :PREFIX else @config[s] = true end end end
Generated with the Darkfish Rdoc Generator 2.