Class: Cinch::Plugins::DelayedRejoin

Inherits:
Object
  • Object
show all
Includes:
Cinch::Plugin
Defined in:
lib/cinch/plugins/delayedrejoin.rb

Instance Method Summary collapse

Instance Method Details

#listen(m) ⇒ Object


9
10
11
12
13
# File 'lib/cinch/plugins/delayedrejoin.rb', line 9

def listen(m)
  return unless User(m.params[1]) == @bot
  sleep config[:delay] || 10
  m.channel.join(m.channel.key)
end