Parent

Cinch::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_manager.rb, line 21
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 Bot#Channel

# File lib/cinch/channel_manager.rb, line 10
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.