Class: IRC::Server::Modules::Translate

Inherits:
IRC::Server::Module show all
Defined in:
lib/failirc/server/modules/Translate.rb

Instance Attribute Summary

Attributes inherited from IRC::Server::Module

#server

Instance Method Summary collapse

Methods inherited from IRC::Server::Module

#finalize

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, message, level)
    if chain == :input

    elsif chain == :output

    end
end