Method: Cinch::Channel#join

Defined in:
lib/cinch/channel.rb

#join(key = nil)

This method returns an undefined value.

Joins the channel

Parameters:

  • key (String) (defaults to: nil)

    the channel key, if any. If none is specified but @key is set, @key will be used



377
378
379
380
381
382
# File 'lib/cinch/channel.rb', line 377

def join(key = nil)
  if key.nil? and self.key != true
    key = self.key
  end
  @bot.irc.send "JOIN #{[@name, key].compact.join(" ")}"
end