From e4a08d44617d8b46f58a0e110ffcf7f8df29a56f Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 7 Apr 2005 16:05:08 +0000 Subject: Added /LOADMODULE (tested and working) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@998 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/commands.cpp') 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) { -- cgit v1.2.3