Esempio 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()
Esempio 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()
Esempio 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()
Esempio 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()