summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-07 17:04:04 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-07 17:04:04 +0000
commit211b24ba8cf6e21f435f145b0366adc8a3b62460 (patch)
tree8119f965d57ad163f57c220ff8e11ca772184419 /src/commands.cpp
parente4a08d44617d8b46f58a0e110ffcf7f8df29a56f (diff)
Started work on /UNLOADMODULE, resource tracking and flags in Version class
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@999 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 5d8f94316..19dd9f200 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -283,6 +283,19 @@ void handle_loadmodule(char **parameters, int pcnt, userrec *user)
}
}
+void handle_unloadmodule(char **parameters, int pcnt, userrec *user)
+{
+ if (UnloadModule(parameters[0]))
+ {
+ WriteOpers("*** MODULE UNLOADED: %s",parameters[0]);
+ WriteServ(user->fd,"973 %s %s :Module successfully unloaded.",user->nick, parameters[0]);
+ }
+ else
+ {
+ WriteServ(user->fd,"972 %s %s :Failed to unload module: %s",user->nick, parameters[0],ModuleError());
+ }
+}
+
void handle_die(char **parameters, int pcnt, userrec *user)
{
log(DEBUG,"die: %s",user->nick);