Allow a comma separator in the en masse plugin addition.

This commit is contained in:
Jeremy Fincher 2004-01-01 20:04:35 +00:00
parent e1b0d7d8a4
commit 8a739241a1

View File

@ -359,7 +359,7 @@ def main():
in bulk like this, just press enter and we'll move on to the individual in bulk like this, just press enter and we'll move on to the individual
plugin configuration.""" % utils.commaAndify(plugins)) plugin configuration.""" % utils.commaAndify(plugins))
massPlugins = anything('Separate plugin names by spaces:') massPlugins = anything('Separate plugin names by spaces:')
for name in massPlugins.split(): for name in re.split(r',?\s+', massPlugins):
module = loadPlugin(name) module = loadPlugin(name)
if module is not None: if module is not None:
configurePlugin(module, onStart, afterConnect, advanced) configurePlugin(module, onStart, afterConnect, advanced)