Ejemplo n.º 1
0
 def __init__(self):
     IrcdFactory.__init__(self)
     self.state.sid = '90B'
     self.state.servername = 'ts6.grixis.local'
     self.me = Server(self.state.sid, self.state.servername, self.state.serverdesc)
     self.clients = {}
     nicks = ('idoru','foo', 'bar', 'baz', 'ack', 'zap', 'kay')
     for nick in nicks:
         self.clients[nick] = [ Idoru, Idoru(self, self.me, nick, modes = 'oS') ]
         self.clients['ts6' + nick] = [ NewIdoru, NewIdoru(self, self.me, 'ts6' + nick, modes = 'oS') ]
     for nick, rec in self.clients.iteritems():
         c = rec[1]
         c.onkill = self.reloadClient
         self.state.addClient(c)
         c.connectionMade()
Ejemplo n.º 2
0
 def __init__(self, config):
     IrcdFactory.__init__(self)
     self.state.sid = config['sid']
     self.state.servername = config['servername']
     self.state.serverdesc = config['serverdesc']
     self.connectpass = config['password']
     self.me = Server(self.state.sid, self.state.servername, self.state.serverdesc)
     clist = get_clients()
     self.clients = {}
     for name in clist:
         cl = load_client(name)
         self.clients[name] = [ cl, cl(self, self.me, name) ]
     for nick, rec in self.clients.iteritems():
         c = rec[1]
         c.onkill = self.reloadClient
         self.state.addClient(c)
         c.connectionMade()
Ejemplo n.º 3
0
 def __init__(self, config):
     IrcdFactory.__init__(self)
     self.state.sid = config['sid']
     self.state.servername = config['servername']
     self.state.serverdesc = config['serverdesc']
     self.connectpass = config['password']
     self.me = Server(self.state.sid, self.state.servername,
                      self.state.serverdesc)
     clist = get_clients()
     self.clients = {}
     for name in clist:
         cl = load_client(name)
         self.clients[name] = [cl, cl(self, self.me, name)]
     for nick, rec in self.clients.iteritems():
         c = rec[1]
         c.onkill = self.reloadClient
         self.state.addClient(c)
         c.connectionMade()
Ejemplo n.º 4
0
 def __init__(self):
     IrcdFactory.__init__(self)
     self.state.sid = '90B'
     self.state.servername = 'ts6.grixis.local'
     self.me = Server(self.state.sid, self.state.servername,
                      self.state.serverdesc)
     self.clients = {}
     nicks = ('idoru', 'foo', 'bar', 'baz', 'ack', 'zap', 'kay')
     for nick in nicks:
         self.clients[nick] = [
             Idoru, Idoru(self, self.me, nick, modes='oS')
         ]
         self.clients['ts6' + nick] = [
             NewIdoru,
             NewIdoru(self, self.me, 'ts6' + nick, modes='oS')
         ]
     for nick, rec in self.clients.iteritems():
         c = rec[1]
         c.onkill = self.reloadClient
         self.state.addClient(c)
         c.connectionMade()