2005-12-16 18:10:38 +00:00
|
|
|
/* +------------------------------------+
|
|
|
|
* | Inspire Internet Relay Chat Daemon |
|
|
|
|
* +------------------------------------+
|
|
|
|
*
|
2006-01-15 15:59:11 +00:00
|
|
|
* InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
|
2005-12-16 18:10:38 +00:00
|
|
|
* E-mail:
|
2006-01-15 15:59:11 +00:00
|
|
|
* <brain@chatspike.net>
|
|
|
|
* <Craig@chatspike.net>
|
2005-12-16 18:10:38 +00:00
|
|
|
*
|
|
|
|
* Written by Craig Edwards, Craig McLure, and others.
|
|
|
|
* This program is free but copyrighted software; see
|
|
|
|
* the file COPYING for details.
|
|
|
|
*
|
|
|
|
* ---------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "inspircd.h"
|
|
|
|
#include "users.h"
|
|
|
|
#include "commands.h"
|
|
|
|
#include "helperfuncs.h"
|
2006-04-20 18:55:46 +00:00
|
|
|
#include "commands/cmd_loadmodule.h"
|
2005-12-16 18:10:38 +00:00
|
|
|
|
|
|
|
extern InspIRCd* ServerInstance;
|
|
|
|
|
|
|
|
void cmd_loadmodule::Handle (char **parameters, int pcnt, userrec *user)
|
|
|
|
{
|
|
|
|
if (ServerInstance->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],ServerInstance->ModuleError());
|
|
|
|
}
|
|
|
|
}
|