add /modules command

lists all modules.
green if loaded, red otherwise
This commit is contained in:
jomo
2014-07-21 02:24:43 +02:00
parent ce8b20aacd
commit 3da64f301d
2 changed files with 10 additions and 2 deletions

View File

@@ -143,3 +143,11 @@ def on_pyeval_command(sender, args):
else:
noperm(sender)
return True
@hook.command("modules")
def on_modules_command(sender, args):
plugin_header("Modules")
for mod in shared["load_modules"]:
color = "a" if mod in shared["modules"] else "c"
msg(sender, "&" + color + mod)