]>
jfr.im git - solanum.git/blob - extensions/chm_quietunreg_compat.c
2 * Treat cmode +-R as +-q $~a.
13 static int _modinit(void);
14 static void _moddeinit(void);
15 static void chm_quietunreg(struct Client
*source_p
, struct Channel
*chptr
,
16 int alevel
, int parc
, int *parn
,
17 const char **parv
, int *errors
, int dir
, char c
, long mode_type
);
19 DECLARE_MODULE_AV1(chm_quietunreg_compat
, _modinit
, _moddeinit
, NULL
, NULL
, NULL
, "$Revision$");
24 chmode_table
['R'].set_func
= chm_quietunreg
;
25 chmode_table
['R'].mode_type
= 0;
33 chmode_table
['R'].set_func
= chm_nosuch
;
34 chmode_table
['R'].mode_type
= 0;
38 chm_quietunreg(struct Client
*source_p
, struct Channel
*chptr
,
39 int alevel
, int parc
, int *parn
,
40 const char **parv
, int *errors
, int dir
, char c
, long mode_type
)
43 const char *newparv
[] = { "$~a" };
45 if (MyClient(source_p
))
46 chm_ban(source_p
, chptr
, alevel
, 1, &newparn
, newparv
,
47 errors
, dir
, 'q', CHFL_QUIET
);
49 chm_nosuch(source_p
, chptr
, alevel
, parc
, parn
, parv
,
50 errors
, dir
, c
, mode_type
);