38 |
|
|
39 |
|
#define HELPLEN 400 |
40 |
|
|
41 |
– |
static void m_help(struct Client *, struct Client *, int, char *[]); |
42 |
– |
static void mo_help(struct Client *, struct Client *, int, char *[]); |
43 |
– |
static void mo_uhelp(struct Client *, struct Client *, int, char *[]); |
41 |
|
static void dohelp(struct Client *, const char *, char *); |
42 |
|
static void sendhelpfile(struct Client *, const char *, const char *); |
43 |
|
|
47 |
– |
struct Message help_msgtab = { |
48 |
– |
"HELP", 0, 0, 0, MAXPARA, MFLG_SLOW, 0, |
49 |
– |
{m_unregistered, m_help, m_ignore, m_ignore, mo_help, m_ignore} |
50 |
– |
}; |
51 |
– |
|
52 |
– |
struct Message uhelp_msgtab = { |
53 |
– |
"UHELP", 0, 0, 0, MAXPARA, MFLG_SLOW, 0, |
54 |
– |
{m_unregistered, m_help, m_ignore, m_ignore, mo_uhelp, m_ignore} |
55 |
– |
}; |
56 |
– |
|
57 |
– |
void |
58 |
– |
_modinit(void) |
59 |
– |
{ |
60 |
– |
mod_add_cmd(&help_msgtab); |
61 |
– |
mod_add_cmd(&uhelp_msgtab); |
62 |
– |
} |
63 |
– |
|
64 |
– |
void |
65 |
– |
_moddeinit(void) |
66 |
– |
{ |
67 |
– |
mod_del_cmd(&help_msgtab); |
68 |
– |
mod_del_cmd(&uhelp_msgtab); |
69 |
– |
} |
70 |
– |
|
71 |
– |
const char *_version = "$Revision$"; |
44 |
|
|
45 |
|
/* |
46 |
|
* m_help - HELP message handler |
198 |
|
sendto_one(source_p, form_str(RPL_ENDOFHELP), |
199 |
|
me.name, source_p->name, topic); |
200 |
|
} |
201 |
+ |
|
202 |
+ |
static struct Message help_msgtab = { |
203 |
+ |
"HELP", 0, 0, 0, 0, MFLG_SLOW, 0, |
204 |
+ |
{m_unregistered, m_help, m_ignore, m_ignore, mo_help, m_ignore} |
205 |
+ |
}; |
206 |
+ |
|
207 |
+ |
static struct Message uhelp_msgtab = { |
208 |
+ |
"UHELP", 0, 0, 0, 0, MFLG_SLOW, 0, |
209 |
+ |
{m_unregistered, m_help, m_ignore, m_ignore, mo_uhelp, m_ignore} |
210 |
+ |
}; |
211 |
+ |
|
212 |
+ |
static void |
213 |
+ |
module_init(void) |
214 |
+ |
{ |
215 |
+ |
mod_add_cmd(&help_msgtab); |
216 |
+ |
mod_add_cmd(&uhelp_msgtab); |
217 |
+ |
} |
218 |
+ |
|
219 |
+ |
static void |
220 |
+ |
module_exit(void) |
221 |
+ |
{ |
222 |
+ |
mod_del_cmd(&help_msgtab); |
223 |
+ |
mod_del_cmd(&uhelp_msgtab); |
224 |
+ |
} |
225 |
+ |
|
226 |
+ |
struct module module_entry = { |
227 |
+ |
.node = { NULL, NULL, NULL }, |
228 |
+ |
.name = NULL, |
229 |
+ |
.version = "$Revision$", |
230 |
+ |
.handle = NULL, |
231 |
+ |
.modinit = module_init, |
232 |
+ |
.modexit = module_exit, |
233 |
+ |
.flags = 0 |
234 |
+ |
}; |