1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * InspIRCd: (C) 2002-2008 InspIRCd Development Team
6 * See: http://www.inspircd.org/wiki/index.php/Credits
8 * This program is free but copyrighted software; see
9 * the file COPYING for details.
11 * ---------------------------------------------------
15 #include "commands/cmd_loadmodule.h"
17 extern "C" DllExport Command* init_command(InspIRCd* Instance)
19 return new CommandLoadmodule(Instance);
22 /** Handle /LOADMODULE
24 CmdResult CommandLoadmodule::Handle (const char* const* parameters, int, User *user)
26 if (ServerInstance->Modules->Load(parameters[0]))
28 ServerInstance->SNO->WriteToSnoMask('A', "NEW MODULE: %s loaded %s",user->nick, parameters[0]);
29 user->WriteNumeric(975, "%s %s :Module successfully loaded.",user->nick, parameters[0]);
34 user->WriteNumeric(974, "%s %s :%s",user->nick, parameters[0], ServerInstance->Modules->LastError().c_str());