mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-06-28 01:26:37 +02:00
77 lines
1.6 KiB
C
77 lines
1.6 KiB
C
/*
|
|
* Module skeleton, by Carsten V. Munk 2001 <stskeeps@tspre.org>
|
|
* May be used, modified, or changed by anyone, no license applies.
|
|
* You may relicense this, to any license
|
|
*/
|
|
#include "config.h"
|
|
#include "struct.h"
|
|
#include "common.h"
|
|
#include "sys.h"
|
|
#include "numeric.h"
|
|
#include "msg.h"
|
|
#include "channel.h"
|
|
#include <time.h>
|
|
#include <sys/stat.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#ifdef _WIN32
|
|
#include <io.h>
|
|
#endif
|
|
#include <fcntl.h>
|
|
#include "h.h"
|
|
#ifdef STRIPBADWORDS
|
|
#include "badwords.h"
|
|
#endif
|
|
#ifdef _WIN32
|
|
#include "version.h"
|
|
#endif
|
|
|
|
DLLFUNC int m_dummy(aClient *cptr, aClient *sptr, int parc, char *parv[]);
|
|
|
|
/* Place includes here */
|
|
#define MSG_DUMMY "DUMMY" /* dummy */
|
|
#define TOK_DUMMY "DU" /* 127 4ever !;) */
|
|
|
|
|
|
ModuleHeader MOD_HEADER(m_dummy)
|
|
= {
|
|
"dummy", /* Name of module */
|
|
"$Id$", /* Version */
|
|
"command /dummy", /* Short description of module */
|
|
"3.2-b8-1",
|
|
NULL
|
|
};
|
|
|
|
/* This is called on module init, before Server Ready */
|
|
DLLFUNC int MOD_INIT(m_dummy)(ModuleInfo *modinfo)
|
|
{
|
|
/*
|
|
* We call our add_Command crap here
|
|
*/
|
|
add_Command(MSG_DUMMY, TOK_DUMMY, m_dummy, MAXPARA);
|
|
return MOD_SUCCESS;
|
|
}
|
|
|
|
/* Is first run when server is 100% ready */
|
|
DLLFUNC int MOD_LOAD(m_dummy)(int module_load)
|
|
{
|
|
return MOD_SUCCESS;
|
|
}
|
|
|
|
|
|
/* Called when module is unloaded */
|
|
DLLFUNC int MOD_UNLOAD(m_dummy)(int module_unload)
|
|
{
|
|
if (del_Command(MSG_DUMMY, TOK_DUMMY, m_dummy) < 0)
|
|
{
|
|
sendto_realops("Failed to delete commands when unloading %s",
|
|
MOD_HEADER(m_dummy).name);
|
|
}
|
|
return MOD_SUCCESS;
|
|
}
|
|
|
|
DLLFUNC int m_dummy(aClient *cptr, aClient *sptr, int parc, char *parv[])
|
|
{
|
|
}
|