summaryrefslogtreecommitdiffstats
path: root/wmd
diff options
context:
space:
mode:
Diffstat (limited to 'wmd')
-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)