summaryrefslogtreecommitdiff
path: root/src/core/commands.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-04-11 00:55:42 +0200
committermathieui <mathieui@mathieui.net>2014-04-11 00:55:42 +0200
commit0847643b548d1f5014c1af56a86c0e6c2d7ce92f (patch)
treefc6d4e22462bc70bd04680e8409369529b98a28e /src/core/commands.py
parentd18fe6c477332afd2a81a4723c2951c8328d0cf1 (diff)
downloadpoezio-0847643b548d1f5014c1af56a86c0e6c2d7ce92f.tar.gz
poezio-0847643b548d1f5014c1af56a86c0e6c2d7ce92f.tar.bz2
poezio-0847643b548d1f5014c1af56a86c0e6c2d7ce92f.tar.xz
poezio-0847643b548d1f5014c1af56a86c0e6c2d7ce92f.zip
Fix #2421 (load and unload several plugins)
Diffstat (limited to 'src/core/commands.py')
-rw-r--r--src/core/commands.py18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/core/commands.py b/src/core/commands.py
index 68a6eacf..f2a6d2f4 100644
--- a/src/core/commands.py
+++ b/src/core/commands.py
@@ -797,25 +797,19 @@ def command_rawxml(self, arg):
def command_load(self, arg):
"""
- /load <plugin>
+ /load <plugin> [<otherplugin> …]
"""
args = arg.split()
- if len(args) != 1:
- self.command_help('load')
- return
- filename = args[0]
- self.plugin_manager.load(filename)
+ for plugin in args:
+ self.plugin_manager.load(plugin)
def command_unload(self, arg):
"""
- /unload <plugin>
+ /unload <plugin> [<otherplugin> …]
"""
args = arg.split()
- if len(args) != 1:
- self.command_help('unload')
- return
- filename = args[0]
- self.plugin_manager.unload(filename)
+ for plugin in args:
+ self.plugin_manager.unload(plugin)
def command_plugins(self, arg=''):
"""