# File lib/cinch/isupport.rb, line 51 def initialize(*args) super # by setting most numeric values to "Infinity", we let the # server truncate messages and lists while at the same time # allowing the use of strictness=:strict for servers that don't # support ISUPPORT (hopefully none, anyway) self["PREFIX"] = {"o" => "@", "v" => "+"} self["CHANTYPES"] = ["#"] self["CHANMODES"] = { "A" => ["b"], "B" => ["k"], "C" => ["l"], "D" => ]i m n p s t r] } self["MODES"] = 1 self["NICKLEN"] = Infinity self["MAXBANS"] = Infinity self["TOPICLEN"] = Infinity self["KICKLEN"] = Infinity self["CHANNELLEN"] = Infinity self["CHIDLEN"] = 5 self["AWAYLEN"] = Infinity self["MAXTARGETS"] = 1 self["MAXCHANNELS"] = Infinity # deprecated self["CHANLIMIT"] = {"#" => Infinity} self["STATUSMSG"] = ["@", "+"] self["CASEMAPPING"] = :rfc1459 self["ELIST"] = [] end
@api private @return [void]
# File lib/cinch/isupport.rb, line 84 def parse(*options) options.each do |option| name, value = option.split("=") if value proc = @@mappings.find {|key, value| key.include?(name)} self[name] = (proc && proc[1].call(value)) || value else self[name] = true end end end
Generated with the Darkfish Rdoc Generator 2.