Class: Admin::Autojoin

Inherits:
Object
  • Object
show all
Includes:
Cinch::Helpers, Cinch::Plugin
Defined in:
lib/Zeta/admin/autojoin.rb

Instance Method Summary collapse

Methods included from Cinch::Plugin

#check?, #log2chan

Instance Method Details

#join_and_notify(m) ⇒ Object

Methods



13
14
15
16
17
18
# File 'lib/Zeta/admin/autojoin.rb', line 13

def join_and_notify(m)
  if Config.options.key? :join_on_invite
    log2chan("#{m.user.nick} has requested me join #{m.channel}", :notice)
    Channel(m.channel).join
  end
end