]>
jfr.im git - irc/rqf/shadowircd.git/blob - extensions/extb_oper.c
2 * Oper extban type: matches opers
12 static int _modinit(void);
13 static void _moddeinit(void);
14 static int eb_oper(const char *data
, struct Client
*client_p
, struct Channel
*chptr
, long mode_type
);
16 DECLARE_MODULE_AV1(extb_oper
, _modinit
, _moddeinit
, NULL
, NULL
, NULL
, "$Revision: 1299 $");
21 extban_table
['o'] = eb_oper
;
29 extban_table
['o'] = NULL
;
32 static int eb_oper(const char *data
, struct Client
*client_p
,
33 struct Channel
*chptr
, long mode_type
)
38 /* perhaps use data somehow? (opernick/flags?) */
39 /* so deny any bans with data for now */
41 return EXTBAN_INVALID
;
42 return IsOper(client_p
) ? EXTBAN_MATCH
: EXTBAN_NOMATCH
;