@since 2.0.0 @version 1.1.0 @note In prior versions, this class was called ChannelManager
Finds a channel.
@param [String] name name of a channel @return [Channel, nil]
# File lib/cinch/channel_list.rb, line 24 def find(name) downcased_name = name.irc_downcase(@bot.irc.isupport["CASEMAPPING"]) @cache[downcased_name] end
Finds or creates a channel.
@param [String] name name of a channel @return [Channel] @see Helpers#Channel
# File lib/cinch/channel_list.rb, line 13 def find_ensured(name) downcased_name = name.irc_downcase(@bot.irc.isupport["CASEMAPPING"]) @mutex.synchronize do @cache[downcased_name] ||= Channel.new(name, @bot) end end
Generated with the Darkfish Rdoc Generator 2.