Class/Module Index [+]

Quicksearch

Cinch::ChannelList

@since 2.0.0 @version 1.1.0 @note In prior versions, this class was called ChannelManager

Public Instance Methods

find(name) click to toggle source

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
find_ensured(name) click to toggle source

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.