This class allows querying the IRC network for its name and used server software as well as certain non-standard behaviour.
@since 2.0.0
@return [Numeric] The `messages per second` value that best suits
the current network
# File lib/cinch/network.rb, line 84 def default_messages_per_second case @name when :freenode 0.7 else 0.5 end end
@return [Integer] The `server queue size` value that best suits
the current network
# File lib/cinch/network.rb, line 95 def default_server_queue_size case @name when :quakenet 40 else 10 end end
@return [Boolean] True if connected to JTV
# File lib/cinch/network.rb, line 62 def jtv? @name == :jtv end
@return [Boolean] True if connected to NgameTV
# File lib/cinch/network.rb, line 57 def ngametv? @name == :ngametv end
@return [String, nil] The mode used for getting the list of
channel owners, if any
# File lib/cinch/network.rb, line 41 def owner_list_mode return "q" if @ircd == :unreal end
@return [String, nil] The mode used for getting the list of
channel quiets, if any
# File lib/cinch/network.rb, line 47 def quiet_list_mode return "q" if @ircd == :"ircd-seven" end
@return [Boolean] True if we do not know which software the
server is running
# File lib/cinch/network.rb, line 74 def unknown_ircd? @ircd == :unknown end
Generated with the Darkfish Rdoc Generator 2.