diff options
| author | jason | 2012-08-08 23:29:47 -0600 |
|---|---|---|
| committer | jason | 2012-08-08 23:29:47 -0600 |
| commit | 6cd2f3389f82a8f3b4b2c928d40b692332e850ac (patch) | |
| tree | a0e60954bce4eef70e249d500f6d01b44dd4968f | |
| parent | c7c32ccf3b6e70704d8dae7dba9fa2c32d17b87f (diff) | |
| download | warmachine-6cd2f3389f82a8f3b4b2c928d40b692332e850ac.tar.gz warmachine-6cd2f3389f82a8f3b4b2c928d40b692332e850ac.zip | |
made reload work... probably
| -rw-r--r-- | wmd/actions/modules.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/wmd/actions/modules.py b/wmd/actions/modules.py index 0998c8d..c9e6450 100644 --- a/wmd/actions/modules.py +++ b/wmd/actions/modules.py | |||
| @@ -19,8 +19,7 @@ class ReloadModule(Action): | |||
| 19 | module_class = irc.actions[module].__module__ | 19 | module_class = irc.actions[module].__module__ |
| 20 | module_path = module_class + '.' + module | 20 | module_path = module_class + '.' + module |
| 21 | 21 | ||
| 22 | del(irc.actions[module]) | 22 | reload(irc.actions[module]) |
| 23 | irc.load_action(module_path) | ||
| 24 | 23 | ||
| 25 | msg = "Reloaded %s" % (module_path,) | 24 | msg = "Reloaded %s" % (module_path,) |
| 26 | self.log(msg) | 25 | self.log(msg) |