| 25 |
|
*/ |
| 26 |
|
|
| 27 |
|
#include "stdinc.h" |
| 28 |
– |
#include "handlers.h" |
| 28 |
|
#include "client.h" |
| 29 |
|
#include "irc_string.h" |
| 30 |
|
#include "sprintf_irc.h" |
| 31 |
|
#include "ircd.h" |
| 32 |
|
#include "list.h" |
| 33 |
|
#include "numeric.h" |
| 34 |
< |
#include "s_conf.h" |
| 34 |
> |
#include "conf.h" |
| 35 |
|
#include "s_serv.h" |
| 36 |
|
#include "send.h" |
| 38 |
– |
#include "msg.h" |
| 37 |
|
#include "parse.h" |
| 38 |
|
#include "modules.h" |
| 39 |
|
|
| 42 |
– |
static void m_accept(struct Client *, struct Client *, int, char *[]); |
| 43 |
– |
|
| 44 |
– |
struct Message accept_msgtab = { |
| 45 |
– |
"ACCEPT", 0, 0, 0, 0, MFLG_SLOW, 0, |
| 46 |
– |
{ m_unregistered, m_accept, m_ignore, m_ignore, m_accept, m_ignore } |
| 47 |
– |
}; |
| 48 |
– |
|
| 49 |
– |
void |
| 50 |
– |
_modinit(void) |
| 51 |
– |
{ |
| 52 |
– |
mod_add_cmd(&accept_msgtab); |
| 53 |
– |
} |
| 54 |
– |
|
| 55 |
– |
void |
| 56 |
– |
_moddeinit(void) |
| 57 |
– |
{ |
| 58 |
– |
mod_del_cmd(&accept_msgtab); |
| 59 |
– |
} |
| 60 |
– |
|
| 61 |
– |
const char *_version = "$Revision$"; |
| 62 |
– |
|
| 40 |
|
|
| 41 |
|
/*! \brief Creates and sends a list of nick!user\@host masks a Client |
| 42 |
|
* has on its acceptlist. |
| 192 |
|
} |
| 193 |
|
} |
| 194 |
|
} |
| 195 |
+ |
|
| 196 |
+ |
static struct Message accept_msgtab = { |
| 197 |
+ |
"ACCEPT", 0, 0, 0, MAXPARA, MFLG_SLOW, 0, |
| 198 |
+ |
{ m_unregistered, m_accept, m_ignore, m_ignore, m_accept, m_ignore } |
| 199 |
+ |
}; |
| 200 |
+ |
|
| 201 |
+ |
static void |
| 202 |
+ |
module_init(void) |
| 203 |
+ |
{ |
| 204 |
+ |
mod_add_cmd(&accept_msgtab); |
| 205 |
+ |
} |
| 206 |
+ |
|
| 207 |
+ |
static void |
| 208 |
+ |
module_exit(void) |
| 209 |
+ |
{ |
| 210 |
+ |
mod_del_cmd(&accept_msgtab); |
| 211 |
+ |
} |
| 212 |
+ |
|
| 213 |
+ |
struct module module_entry = { |
| 214 |
+ |
.node = { NULL, NULL, NULL }, |
| 215 |
+ |
.name = NULL, |
| 216 |
+ |
.version = "$Revision$", |
| 217 |
+ |
.handle = NULL, |
| 218 |
+ |
.modinit = module_init, |
| 219 |
+ |
.modexit = module_exit, |
| 220 |
+ |
.flags = 0 |
| 221 |
+ |
}; |