1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-04 14:33:14 +02:00
Files
unrealircd/src/modules/m_dummy.c
T
2001-03-18 13:07:00 +00:00

87 lines
1.8 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 "userload.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 !;) */
ModuleInfo m_dummy_info
= {
1,
"dummy", /* Name of module */
"$Id$", /* Version */
"command /dummy", /* Short description of module */
NULL, /* Pointer to our dlopen() return value */
NULL
};
/*
* The purpose of these ifdefs, are that we can "static" link the ircd if we
* want to
*/
#ifdef DYNAMIC_LINKING
DLLFUNC void mod_init(void)
#else
void m_dummy_init(void)
#endif
{
/* extern variable to export m_dummy_info to temporary
ModuleInfo *modulebuffer;
the module_load() will use this to add to the modules linked
list
*/
module_buffer = &m_dummy_info;
/*
* We call our add_Command crap here
*/
add_Command(MSG_DUMMY, TOK_DUMMY, m_dummy, MAXPARA);
}
#ifdef DYNAMIC_LINKING
DLLFUNC void mod_unload(void)
#else
void m_dummy_unload(void)
#endif
{
if (del_Command(MSG_DUMMY, TOK_DUMMY, m_dummy) < 0)
{
sendto_realops("Failed to delete commands when unloading %s",
m_dummy_info.name);
}
}
DLLFUNC int m_dummy(aClient *cptr, aClient *sptr, int parc, char *parv[])
{
}