Class: Cinch::ChannelManager
- Inherits:
-
CacheManager
- Object
- CacheManager
- Cinch::ChannelManager
- Defined in:
- lib/cinch/channel_manager.rb
Instance Method Summary collapse
-
#find(name) ⇒ Channel?
Finds a channel.
-
#find_ensured(name) ⇒ Channel
Finds or creates a channel.
Methods inherited from CacheManager
Constructor Details
This class inherits a constructor from Cinch::CacheManager
Instance Method Details
#find(name) ⇒ Channel?
Finds a channel.
21 22 23 24 |
# File 'lib/cinch/channel_manager.rb', line 21 def find(name) downcased_name = name.irc_downcase(@bot.irc.isupport["CASEMAPPING"]) @cache[downcased_name] end |