1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
7 * <brain@chatspike.net>
8 * <Craig@chatspike.net>
10 * Written by Craig Edwards, Craig McLure, and others.
11 * This program is free but copyrighted software; see
12 * the file COPYING for details.
14 * ---------------------------------------------------
19 #include "inspircd_config.h"
21 #include "inspircd_io.h"
31 #include "inspstring.h"
32 #include "helperfuncs.h"
34 #include "socketengine.h"
36 #include "cmd_unloadmodule.h"
38 extern InspIRCd* ServerInstance;
40 void cmd_unloadmodule::Handle (char **parameters, int pcnt, userrec *user)
42 if (ServerInstance->UnloadModule(parameters[0]))
44 WriteOpers("*** MODULE UNLOADED: %s",parameters[0]);
45 WriteServ(user->fd,"973 %s %s :Module successfully unloaded.",user->nick, parameters[0]);
49 WriteServ(user->fd,"972 %s %s :Failed to unload module: %s",user->nick, parameters[0],ServerInstance->ModuleError());