mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-10 12:03:12 +02:00
62a39b24d7
+ SVSNLINE + reason_why_moo :realname mask - Add global ban realname
+ ('_' is converted into spaces)
+ SVSNLINE - :realname mask - Remove global ban realname
+ SVSNLINE * - Wipes all global ban realname
+- Fixed FIXME dcc_deny_wipe_services
+
+
\ No newline at end of file
96 lines
1.9 KiB
C
96 lines
1.9 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 !;) */
|
|
|
|
#ifndef DYNAMIC_LINKING
|
|
ModuleInfo m_dummy_info
|
|
#else
|
|
#define m_dummy_info mod_header
|
|
ModuleInfo mod_header
|
|
#endif
|
|
= {
|
|
2,
|
|
"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
|
|
*/
|
|
|
|
/* This is called on module init, before Server Ready */
|
|
#ifdef DYNAMIC_LINKING
|
|
DLLFUNC int mod_init(int module_load)
|
|
#else
|
|
int m_dummy_init(int module_load)
|
|
#endif
|
|
{
|
|
/*
|
|
* We call our add_Command crap here
|
|
*/
|
|
add_Command(MSG_DUMMY, TOK_DUMMY, m_dummy, MAXPARA);
|
|
}
|
|
|
|
/* Is first run when server is 100% ready */
|
|
#ifdef DYNAMIC_LINKING
|
|
DLLFUNC int mod_load(int module_load)
|
|
#else
|
|
int m_dummy_load(int module_load)
|
|
#endif
|
|
{
|
|
}
|
|
|
|
|
|
/* Called when module is unloaded */
|
|
#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[])
|
|
{
|
|
}
|