More RCS keyword removal...
[seven-1.x.git] / extensions / extb_oper.c
blobf6c346d42a0390b2dad17d9b72f2984a35b40390
1 /* {{{ irc-seven: Cows like it.
3 * Copyright (C) 2006 Jilles Tjoelker.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to:
18 * Free Software Foundation, Inc.
19 * 51 Franklin St - Fifth Floor
20 * Boston, MA 02110-1301
21 * USA
23 * }}} */
25 #include "stdinc.h"
26 #include "modules.h"
27 #include "client.h"
28 #include "ircd.h"
30 static int _modinit (void);
31 static void _moddeinit (void);
32 static int eb_oper (const char *data, struct Client *client_p, struct Channel *chptr, long mode_type);
34 /* {{{ DECLARE_MODULE_AV1(...) */
35 DECLARE_MODULE_AV1
37 extb_oper,
38 _modinit,
39 _moddeinit,
40 NULL,
41 NULL,
42 NULL,
43 "1.1"
45 /* }}} */
47 /* {{{ static int _modinit() */
48 static int
49 _modinit (void)
51 extban_table['o'] = eb_oper;
52 return 0;
54 /* }}} */
56 /* {{{ static void _moddeinit() */
57 static void
58 _moddeinit (void)
60 extban_table['o'] = NULL;
62 /* }}} */
64 /* {{{ static int eb_oper() */
65 static int eb_oper (const char *data, struct Client *client_p,
66 struct Channel *chptr, long mode_type)
68 return IsOper(client_p) ? EXTBAN_MATCH : EXTBAN_NOMATCH;
70 /* }}} */
73 * vim: ts=8 sw=8 noet fdm=marker tw=80