Class: Cinch::ChannelList
- Inherits:
-
CachedList
- Object
- CachedList
- Cinch::ChannelList
- Defined in:
- lib/cinch/channel_list.rb
Overview
Note:
In prior versions, this class was called ChannelManager
Instance Method Summary collapse
-
#find(name) ⇒ Channel?
Finds a channel.
-
#find_ensured(name) ⇒ Channel
Finds or creates a channel.
Methods inherited from CachedList
Constructor Details
This class inherits a constructor from Cinch::CachedList
Instance Method Details
#find(name) ⇒ Channel?
Finds a channel.
26 27 28 29 |
# File 'lib/cinch/channel_list.rb', line 26 def find(name) downcased_name = name.irc_downcase(@bot.irc.isupport["CASEMAPPING"]) @cache[downcased_name] end |