Module: Hector::Commands::Part

Included in:
Session
Defined in:
lib/hector/commands/part.rb

Instance Method Summary collapse

Instance Method Details

#on_partObject



4
5
6
7
8
# File 'lib/hector/commands/part.rb', line 4

def on_part
  channel = Channel.find(request.args.first)
  channel.broadcast(:part, channel.name, :source => source, :text => request.text)
  channel.part(self)
end