diff options
| author | jason | 2012-08-09 00:21:46 -0600 |
|---|---|---|
| committer | jason | 2012-08-09 00:21:46 -0600 |
| commit | 972a7cc25b8c9599a904655600123fe054436dae (patch) | |
| tree | 170966c3c73e391b13b1f9b5a0bbdd0b7aee37be | |
| parent | 7366401b6f9cbda4882ee353538464631f9b9a69 (diff) | |
| download | warmachine-972a7cc25b8c9599a904655600123fe054436dae.tar.gz warmachine-972a7cc25b8c9599a904655600123fe054436dae.zip | |
disabled reload. it needs a rework
| -rw-r--r-- | wmd/actions/modules.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/wmd/actions/modules.py b/wmd/actions/modules.py index c9e6450..22df2f6 100644 --- a/wmd/actions/modules.py +++ b/wmd/actions/modules.py | |||
| @@ -9,6 +9,8 @@ class ReloadModule(Action): | |||
| 9 | if username in settings.ADMINS: | 9 | if username in settings.ADMINS: |
| 10 | args = obj_data.params.split(" ") | 10 | args = obj_data.params.split(" ") |
| 11 | if "PRIVMSG" in obj_data.command and "RELOADMODULE" in args[1].upper(): | 11 | if "PRIVMSG" in obj_data.command and "RELOADMODULE" in args[1].upper(): |
| 12 | irc.privmsg(username, "This feature hasn't been implemented yet") | ||
| 13 | return | ||
| 12 | module = args[2] | 14 | module = args[2] |
| 13 | if not module in irc.actions: | 15 | if not module in irc.actions: |
| 14 | irc.privmsg(username, "Invalid Module: %s") | 16 | irc.privmsg(username, "Invalid Module: %s") |
| @@ -19,7 +21,9 @@ class ReloadModule(Action): | |||
| 19 | module_class = irc.actions[module].__module__ | 21 | module_class = irc.actions[module].__module__ |
| 20 | module_path = module_class + '.' + module | 22 | module_path = module_class + '.' + module |
| 21 | 23 | ||
| 22 | reload(irc.actions[module]) | 24 | print dir(irc.actions[module]) |
| 25 | |||
| 26 | #reload(module_class) | ||
| 23 | 27 | ||
| 24 | msg = "Reloaded %s" % (module_path,) | 28 | msg = "Reloaded %s" % (module_path,) |
| 25 | self.log(msg) | 29 | self.log(msg) |