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 "commands/cmd_loadmodule.h"
23 extern "C" command_t* init_command(InspIRCd* Instance)
25 return new cmd_loadmodule(Instance);
28 void cmd_loadmodule::Handle (const char** parameters, int pcnt, userrec *user)
30 if (ServerInstance->LoadModule(parameters[0]))
32 ServerInstance->WriteOpers("*** NEW MODULE: %s",parameters[0]);
33 user->WriteServ("975 %s %s :Module successfully loaded.",user->nick, parameters[0]);
37 user->WriteServ("974 %s %s :Failed to load module: %s",user->nick, parameters[0],ServerInstance->ModuleError());