summaryrefslogtreecommitdiffstats
path: root/wmd/actions
diff options
context:
space:
mode:
authorjason2012-08-09 00:49:00 -0600
committerjason2012-08-09 00:49:00 -0600
commit842e185c613f3ea11132ff4e9fe024f0101e4813 (patch)
tree835a3328881bdc14254b7a652caa89d4da80c1bd /wmd/actions
parent28f95d662ca2385661053ef6ea5ad1db665b0fc7 (diff)
downloadwarmachine-842e185c613f3ea11132ff4e9fe024f0101e4813.tar.gz
warmachine-842e185c613f3ea11132ff4e9fe024f0101e4813.zip
reworked how the modules work a bit. warmachine works, but loading,unloading and reloading modules while it's running is probably broken.
Diffstat (limited to 'wmd/actions')
-rw-r--r--wmd/actions/modules.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/wmd/actions/modules.py b/wmd/actions/modules.py
index 22df2f6..3431ab6 100644
--- a/wmd/actions/modules.py
+++ b/wmd/actions/modules.py
@@ -9,9 +9,9 @@ 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") 12
13 return 13 class_name = args[2]
14 module = args[2] 14
15 if not module in irc.actions: 15 if not module in irc.actions:
16 irc.privmsg(username, "Invalid Module: %s") 16 irc.privmsg(username, "Invalid Module: %s")
17 return 17 return