2 * Treat cmode +-R as +-q $~a.
13 static const char chm_quietunreg_compat_desc
[] =
14 "Adds an emulated channel mode +R which is converted into mode +q $~a";
16 static int _modinit(void);
17 static void _moddeinit(void);
18 static void chm_quietunreg(struct Client
*source_p
, struct Channel
*chptr
,
19 int alevel
, int parc
, int *parn
,
20 const char **parv
, int *errors
, int dir
, char c
, long mode_type
);
22 DECLARE_MODULE_AV2(chm_quietunreg_compat
, _modinit
, _moddeinit
, NULL
, NULL
, NULL
, NULL
, NULL
, chm_quietunreg_compat_desc
);
27 chmode_table
['R'].set_func
= chm_quietunreg
;
28 chmode_table
['R'].mode_type
= 0;
36 chmode_table
['R'].set_func
= chm_nosuch
;
37 chmode_table
['R'].mode_type
= 0;
41 chm_quietunreg(struct Client
*source_p
, struct Channel
*chptr
,
42 int alevel
, int parc
, int *parn
,
43 const char **parv
, int *errors
, int dir
, char c
, long mode_type
)
46 const char *newparv
[] = { "$~a" };
48 if (MyClient(source_p
))
49 chm_ban(source_p
, chptr
, alevel
, 1, &newparn
, newparv
,
50 errors
, dir
, 'q', CHFL_QUIET
);
52 chm_nosuch(source_p
, chptr
, alevel
, parc
, parn
, parv
,
53 errors
, dir
, c
, mode_type
);