Class: IRC::Server::Modules::Translate
- Inherits:
-
IRC::Server::Module
- Object
- IRC::Server::Module
- IRC::Server::Modules::Translate
- Defined in:
- lib/failirc/server/modules/Translate.rb
Instance Attribute Summary
Attributes inherited from IRC::Server::Module
Instance Method Summary collapse
-
#initialize(server) ⇒ Translate
constructor
A new instance of Translate.
- #translate(chain, from, to, message, level) ⇒ Object
Methods inherited from IRC::Server::Module
Constructor Details
#initialize(server) ⇒ Translate
Returns a new instance of Translate.
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/failirc/server/modules/Translate.rb', line 29 def initialize (server) @aliases = { :input => { :TRANSLATE => /^TRANSLATE( |$)/i, }, } @events = { :custom => { :message => Event::Callback.new(self.method(:netlog), -50), }, :input => { :TRANSLATE => self.method(:set), }, } super(server) end |
Instance Method Details
#translate(chain, from, to, message, level) ⇒ Object
49 50 51 52 53 54 55 |
# File 'lib/failirc/server/modules/Translate.rb', line 49 def translate (chain, from, to, , level) if chain == :input elsif chain == :output end end |