Class: Log

Inherits:
Sponge::Plugin show all
Defined in:
lib/proto/plugins/log.rb

Constant Summary

Constants inherited from Sponge::Plugin

Sponge::Plugin::AUTH, Sponge::Plugin::LIST, Sponge::Plugin::LISTENERS

Instance Method Summary collapse

Methods inherited from Sponge::Plugin

command, has_listener?, #help, inherited, #initialize, listen_to, requires_auth, #requires_auth?, #usage

Constructor Details

This class inherits a constructor from Sponge::Plugin

Instance Method Details

#listen(message) ⇒ Object



4
5
6
# File 'lib/proto/plugins/log.rb', line 4

def listen(message)
  puts "<#{message.channel}/#{message.nick}> #{message.text}"
end