diff --git a/src/IRCBot.py b/src/IRCBot.py index fbc74ad9..348a2ea8 100644 --- a/src/IRCBot.py +++ b/src/IRCBot.py @@ -161,11 +161,11 @@ class Bot(object): return (db_whitelist|conf_whitelist, db_blacklist|conf_blacklist) - def load_modules(self, safe: bool=False + def load_modules(self ) -> typing.Tuple[typing.List[str], typing.List[str]]: whitelist, blacklist = self._module_lists() return self.modules.load_modules(self, whitelist=whitelist, - blacklist=blacklist, safe=safe) + blacklist=blacklist) def try_reload_modules(self) -> ModuleManager.TryReloadResult: whitelist, blacklist = self._module_lists() return self.modules.try_reload_modules(self, whitelist=whitelist, diff --git a/src/ModuleManager.py b/src/ModuleManager.py index 74ef7d01..36221798 100644 --- a/src/ModuleManager.py +++ b/src/ModuleManager.py @@ -320,7 +320,7 @@ class ModuleManager(object): return [definition_names[name] for name in definitions_ordered] def load_modules(self, bot: "IRCBot.Bot", whitelist: typing.List[str]=[], - blacklist: typing.List[str]=[], safe: bool=False + blacklist: typing.List[str]=[] ) -> typing.Tuple[typing.List[str], typing.List[str]]: loadable, nonloadable = self._list_valid_modules(bot, whitelist, blacklist)