class EventMachine::IRC::Server

Constants

VERSION

Attributes

channel_store[R]
config[R]
user_store[R]

Public Class Methods

channel_store() click to toggle source
# File lib/eventmachine/irc/server.rb, line 731
def self.channel_store
  @@channel_store
end
config() click to toggle source
# File lib/eventmachine/irc/server.rb, line 735
def self.config
  @@config
end
new() click to toggle source
# File lib/eventmachine/irc/server.rb, line 741
def initialize
  @user_store = @@user_store
  @channel_store = @@channel_store
  @config = @@config
end
user_store() click to toggle source
# File lib/eventmachine/irc/server.rb, line 727
def self.user_store
  @@user_store
end

Public Instance Methods

channelmodes() click to toggle source
# File lib/eventmachine/irc/server.rb, line 751
def channelmodes
        return "bcdefFhiIklmnoPqstv"
end
post_init() click to toggle source
# File lib/eventmachine/irc/server.rb, line 755
def post_init
  @client = ConnectedClient.new(self)
end
receive_data(data) click to toggle source
# File lib/eventmachine/irc/server.rb, line 763
def receive_data(data)
  data.split(/\n/).each do |line|
    @client.receive_data(line)
  end
end
unbind() click to toggle source
# File lib/eventmachine/irc/server.rb, line 759
def unbind
  @client.handle_quit("disconnected...")
end
usermodes() click to toggle source
# File lib/eventmachine/irc/server.rb, line 747
def usermodes
        return "aAbBcCdDeEfFGhHiIjkKlLmMnNopPQrRsStUvVwWxXyYzZ0123459*@"
end