Sha256: 7dbc124027a51e18bbddfc54f3a6a71bbcbb506ea4c181f89b8518418b48c678
Contents?: true
Size: 541 Bytes
Versions: 5
Compression:
Stored size: 541 Bytes
Contents
module Dazeus module Event module Alias @@aliases = { 'MESSAGE' => 'PRIVMSG', 'MESSAGE_ME' => 'PRIVMSG_ME', 'RENAME' => 'NICK', 'CTCPREP' => 'CTCP_REP', 'MESSAGEME' => 'PRIVMSG_ME', 'PRIVMSGME' => 'PRIVMSG_ME', 'ACTIONME' => 'ACTION_ME', 'CTCPME' => 'CTCP_ME' } def self.resolve(a) return a unless @@aliases.has_key?(a) @@aliases[a] end def self.add_alias(from, to) @@aliases[from] = to end end end end
Version data entries
5 entries across 5 versions & 1 rubygems