diff options
author | Karel Kočí <cynerd@email.cz> | 2015-11-07 15:35:55 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-11-07 15:35:55 +0100 |
commit | ccc21b09f752d583e3fdca694cd94e61a9fbaa69 (patch) | |
tree | 1cf19174ddcbd39c2dc05557823b5f7d9fc169ec /modules/argmodules.py | |
parent | 2a7c2861b69da4570e90be17ad5e0f36b3ec0527 (diff) | |
download | mcserver-wrapper-ccc21b09f752d583e3fdca694cd94e61a9fbaa69.tar.gz mcserver-wrapper-ccc21b09f752d583e3fdca694cd94e61a9fbaa69.tar.bz2 mcserver-wrapper-ccc21b09f752d583e3fdca694cd94e61a9fbaa69.zip |
Remove modules
Modules are not used any more. They are now useless.
Diffstat (limited to 'modules/argmodules.py')
-rw-r--r-- | modules/argmodules.py | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/modules/argmodules.py b/modules/argmodules.py deleted file mode 100644 index 1b004f1..0000000 --- a/modules/argmodules.py +++ /dev/null @@ -1,35 +0,0 @@ -import re -import utils -from utils import conf - -services = ( - utils.Service.argument, - ) - -__add_modules__ = set() - -def argument(args): - global __add_modules__ - if not re.search('^--modules=', args[0]): - return 0 - __add_modules__ = args[0][10:].split(',') - return 1 - -def argument_short(l, args): - global __add_modules__ - if l == 'm': - if len(args) < 1: - return 0 - __add_modules__ = args[0].split(',') - return 1 - return 0 - -def argument_exec(): - for mod in __add_modules__: - conf.modules.add(mod) - -def argument_help(): - if conf.action == 'start' or conf.action == 'list-modules': - print(' -m MODULE,... --module=MODULE,...') - print(' Load additional server modules. Multiple modules can be') - print(' specified. Separate them using commas.') |