diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-07 16:05:08 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-07 16:05:08 +0000 |
commit | e4a08d44617d8b46f58a0e110ffcf7f8df29a56f (patch) | |
tree | 8b4ac16de8a415204f799221b74e7199ce554445 /src/commands.cpp | |
parent | f80d40018af3c47f710f6e787ed54dc72a416d8a (diff) |
Added /LOADMODULE (tested and working)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@998 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands.cpp')
-rw-r--r-- | src/commands.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/commands.cpp b/src/commands.cpp index 00074fb51..5d8f94316 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -270,6 +270,18 @@ void handle_kick(char **parameters, int pcnt, userrec *user) NetSendToAll(buffer); } +void handle_loadmodule(char **parameters, int pcnt, userrec *user) +{ + if (LoadModule(parameters[0])) + { + WriteOpers("*** NEW MODULE: %s",parameters[0]); + WriteServ(user->fd,"975 %s %s :Module successfully loaded.",user->nick, parameters[0]); + } + else + { + WriteServ(user->fd,"974 %s %s :Failed to load module: %s",user->nick, parameters[0],ModuleError()); + } +} void handle_die(char **parameters, int pcnt, userrec *user) { |