summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-11-07 21:05:41 +0100
committermathieui <mathieui@mathieui.net>2011-11-07 21:05:41 +0100
commitf4201bf7549e6c62d4475f6bc0a3e87130eb0b43 (patch)
tree0ece71411dbc559feffcd12adc671a956d88b37c
parentd6b8ca50f2c046aa1248173f453b3804f40c479a (diff)
downloadpoezio-f4201bf7549e6c62d4475f6bc0a3e87130eb0b43.tar.gz
poezio-f4201bf7549e6c62d4475f6bc0a3e87130eb0b43.tar.bz2
poezio-f4201bf7549e6c62d4475f6bc0a3e87130eb0b43.tar.xz
poezio-f4201bf7549e6c62d4475f6bc0a3e87130eb0b43.zip
Add a /plugins command that lists the plugins currently in use
-rw-r--r--src/core.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core.py b/src/core.py
index d19443a8..27f5ca03 100644
--- a/src/core.py
+++ b/src/core.py
@@ -132,6 +132,7 @@ class Core(object):
'bind': (self.command_bind, _('Usage: /bind <key> <equ>\nBind: bind a key to an other key or to a “command”. For example "/bind ^H KEY_UP" makes Control + h do the same same than the Up key.'), None),
'load': (self.command_load, _('Usage: /load <plugin>\nLoad: Load the specified plugin'), self.plugin_manager.completion_load),
'unload': (self.command_unload, _('Usage: /unload <plugin>\nUnload: Unload the specified plugin'), self.plugin_manager.completion_unload),
+ 'plugins': (self.command_plugins, _('Usage: /plugins\nPlugins: Show the plugins in use.'), None),
}
self.key_func = {
@@ -1150,6 +1151,12 @@ class Core(object):
filename = args[0]
self.plugin_manager.unload(filename)
+ def command_plugins(self, arg):
+ """
+ /plugins
+ """
+ self.information("Plugins currently in use: %s" % repr(list(self.plugin_manager.plugins.keys())), 'Info')
+
def command_message(self, arg):
"""
/message <jid> [message]