]>
jfr.im git - solanum.git/blob - extensions/chm_sslonly_compat.c
2 * Treat cmode +-S as +-b $~z.
12 static int _modinit(void);
13 static void _moddeinit(void);
14 static void chm_sslonly(struct Client
*source_p
, struct Channel
*chptr
,
15 int alevel
, int parc
, int *parn
,
16 const char **parv
, int *errors
, int dir
, char c
, long mode_type
);
18 DECLARE_MODULE_AV1(chm_sslonly_compat
, _modinit
, _moddeinit
, NULL
, NULL
, NULL
, "$Revision$");
23 chmode_table
['S'].set_func
= chm_sslonly
;
24 chmode_table
['S'].mode_type
= 0;
32 chmode_table
['S'].set_func
= chm_nosuch
;
33 chmode_table
['S'].mode_type
= 0;
37 chm_sslonly(struct Client
*source_p
, struct Channel
*chptr
,
38 int alevel
, int parc
, int *parn
,
39 const char **parv
, int *errors
, int dir
, char c
, long mode_type
)
42 const char *newparv
[] = { "$~z" };
44 if (MyClient(source_p
))
45 chm_ban(source_p
, chptr
, alevel
, 1, &newparn
, newparv
,
46 errors
, dir
, 'b', CHFL_BAN
);
48 chm_nosuch(source_p
, chptr
, alevel
, parc
, parn
, parv
,
49 errors
, dir
, c
, mode_type
);