]>
jfr.im git - solanum.git/blob - extensions/extb_hostmask.c
2 * Hostmask extban type: bans all users matching a given hostmask, used for stacked extbans
11 static const char extb_desc
[] = "Hostmask ($m) extban type";
13 static int _modinit(void);
14 static void _moddeinit(void);
15 static int eb_hostmask(const char *data
, struct Client
*client_p
, struct Channel
*chptr
, long mode_type
);
17 DECLARE_MODULE_AV2(extb_hostmask
, _modinit
, _moddeinit
, NULL
, NULL
, NULL
, NULL
, NULL
, extb_desc
);
22 extban_table
['m'] = eb_hostmask
;
29 extban_table
['m'] = NULL
;
33 eb_hostmask(const char *banstr
, struct Client
*client_p
, struct Channel
*chptr
, long mode_type
)
35 return client_matches_mask(client_p
, banstr
) ? EXTBAN_MATCH
: EXTBAN_NOMATCH
;