示例#1
0
文件: irc.py 项目: comstud/pyhole
    def load_plugins(self, reload_plugins=False):
        """Load plugins and their commands respectively"""

        if reload_plugins:
            plugin.reload_plugins(irc=self)
        else:
            plugin.load_plugins("plugins", irc=self)
        self.log.info("Loaded Plugins: %s" % active_plugins())
示例#2
0
文件: irc.py 项目: SandyWalsh/pyhole
    def load_plugins(self, reload_plugins=False):
        """Load plugins and their commands respectively"""
        if reload_plugins:
            plugin.reload_plugins(self.plugin_dir, irc=self,
                    conf_file=self.conf_file)
        else:
            plugin.load_plugins(self.plugin_dir, irc=self,
                    conf_file=self.conf_file)

        self.log.info("Loaded Plugins: %s" % active_plugins())