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
, const char *arg
, int *errors
, int dir
, char c
, long mode_type
);
21 DECLARE_MODULE_AV2(chm_quietunreg_compat
, _modinit
, _moddeinit
, NULL
, NULL
, NULL
, NULL
, NULL
, chm_quietunreg_compat_desc
);
26 chmode_table
['R'] = (struct ChannelMode
){ chm_quietunreg
, 0, 0 };
33 chmode_table
['R'] = (struct ChannelMode
){ chm_nosuch
, 0, 0 };
37 chm_quietunreg(struct Client
*source_p
, struct Channel
*chptr
,
38 int alevel
, const char *arg
, int *errors
, int dir
, char c
, long mode_type
)
40 if (MyClient(source_p
))
41 chm_ban(source_p
, chptr
, alevel
, "$~a",
42 errors
, dir
, 'q', CHFL_QUIET
);
44 chm_nosuch(source_p
, chptr
, alevel
, NULL
,
45 errors
, dir
, c
, mode_type
);