summaryrefslogtreecommitdiffstats
path: root/wmd/actions/modules.py
diff options
context:
space:
mode:
authorjason2012-08-09 01:10:14 -0600
committerjason2012-08-09 01:10:14 -0600
commitba7d6e1cb4a6869a5bf4437576db91af28fac229 (patch)
tree05ba937738588d80d18b22d74d192b95e34223fc /wmd/actions/modules.py
parentee4693f34dd2841be620c020062171babb3150ba (diff)
downloadwarmachine-ba7d6e1cb4a6869a5bf4437576db91af28fac229.tar.gz
warmachine-ba7d6e1cb4a6869a5bf4437576db91af28fac229.zip
allow users to reload the reload module.
Diffstat (limited to 'wmd/actions/modules.py')
-rw-r--r--wmd/actions/modules.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/wmd/actions/modules.py b/wmd/actions/modules.py
index f44fe4e..de2169b 100644
--- a/wmd/actions/modules.py
+++ b/wmd/actions/modules.py
@@ -18,10 +18,6 @@ class ReloadModule(Action):
18 return 18 return
19 elif not class_name in irc.actions[module_name][1]: 19 elif not class_name in irc.actions[module_name][1]:
20 irc.privmsg(self, username, "Invalid Plugin" % class_name) 20 irc.privmsg(self, username, "Invalid Plugin" % class_name)
21 elif class_name == self.__class__.__name__:
22 irc.privmsg(username, "Unable to reload self. Try restarting")
23 return
24
25 reload(irc.actions[module_name][0]) 21 reload(irc.actions[module_name][0])
26 try: 22 try:
27 classz = getattr(irc.actions[module_name][0], class_name) 23 classz = getattr(irc.actions[module_name][0], class_name)