]>
jfr.im git - solanum.git/blob - extensions/chm_sslonly_compat.c
2 * Treat cmode +-S as +-b $~z.
12 static const char chm_sslonly_compat_desc
[] =
13 "Adds an emulated channel mode +S which is converted into mode +b $~z";
15 static int _modinit(void);
16 static void _moddeinit(void);
17 static void chm_sslonly(struct Client
*source_p
, struct Channel
*chptr
,
18 int alevel
, const char *arg
, int *errors
, int dir
, char c
, long mode_type
);
20 DECLARE_MODULE_AV2(chm_sslonly_compat
, _modinit
, _moddeinit
, NULL
, NULL
, NULL
, NULL
, NULL
, chm_sslonly_compat_desc
);
25 chmode_table
['S'] = (struct ChannelMode
){ chm_sslonly
, 0, 0 };
32 chmode_table
['S'] = (struct ChannelMode
){ chm_nosuch
, 0, 0 };
36 chm_sslonly(struct Client
*source_p
, struct Channel
*chptr
,
37 int alevel
, const char *arg
, int *errors
, int dir
, char c
, long mode_type
)
39 if (MyClient(source_p
))
40 chm_ban(source_p
, chptr
, alevel
, "$~z",
41 errors
, dir
, 'b', CHFL_BAN
);
43 chm_nosuch(source_p
, chptr
, alevel
, NULL
,
44 errors
, dir
, c
, mode_type
);