From ba7d6e1cb4a6869a5bf4437576db91af28fac229 Mon Sep 17 00:00:00 2001 From: jason Date: Thu, 9 Aug 2012 01:10:14 -0600 Subject: allow users to reload the reload module. --- wmd/actions/modules.py | 4 ---- 1 file changed, 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): return elif not class_name in irc.actions[module_name][1]: irc.privmsg(self, username, "Invalid Plugin" % class_name) - elif class_name == self.__class__.__name__: - irc.privmsg(username, "Unable to reload self. Try restarting") - return - reload(irc.actions[module_name][0]) try: classz = getattr(irc.actions[module_name][0], class_name) -- cgit v1.2.1