Sha256: baef1e3d7a120fe878175e48c6179d9f611dc5bda6e60d9d17eb7f38cf9fd882
Contents?: true
Size: 548 Bytes
Versions: 1
Compression:
Stored size: 548 Bytes
Contents
class IRC class Connection < EventMachine::Connection include EventMachine::Protocols::LineText2 def initialize(server) @server = server end ## EventMachine callbacks def post_init send_data("USER #{@server.ident || @server.irc.ident} * * #{@server.realname || @server.irc.realname}\r\n") send_data("NICK #{@server.nick || @server.irc.nick}\r\n") rescue => e p e end def receive_line(line) @server.receive_line(line) end def unbind @server.unbind end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
on_irc-2.0.1 | lib/on_irc/connection.rb |