Exemplo n.º 1
0
 def __init__(self, **kwargs) :
     self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
     self.servername = kwargs["servername"]
     self.inpass = kwargs["inpass"]
     self.outpass = kwargs["outpass"]
     self.rhost = kwargs["remote host"]
     self.port = kwargs["remote port"]
     self.sid = kwargs["sid"]
     self.ssl = kwargs["ssl"]
     self.buff = ""
     self.bursting = True
     if self.ssl :
         self.sock = ssl.wrap_socket(self.sock)
     hookstartup.main(self, world)
Exemplo n.º 2
0
    def rehash(self) :
#        essentialslist = glob.glob("essentials/*.py")
#        essentialslist.sort()
#        pluginlist = glob.glob("plugins/*.py")
#        pluginlist.sort()
#        essentials = {}
#        plugins = {}
#        for x in essentialslist :
#            essentials[x.replace("essentials\\", "").replace("essentials/", "").replace(".py", "")] = imp.load_source(x.replace("essentials\\", "").replace("essentials/", "").replace(".py", ""), x)
#        for plugin in pluginlist :
#                if plugin != "plugins/__init__.py" and plugin != "plugins\\__init__.py" :
#                    plugins[plugin.replace("plugins\\", "").replace("plugins/", "").replace(".py", "")] = imp.load_source(plugin.replace("plugins\\", "").replace("plugins/", "").replace(".py", ""), plugin)
        del world.plugins
        del world.hooks
        world.hooks = {}
        world.plugins = {}
        hookstartup.main(self, world)