]> jfr.im git - irc/evilnet/x3.git/blame - src/opserv.h
Added missing Nefarious 2 IRCop privs
[irc/evilnet/x3.git] / src / opserv.h
CommitLineData
d76ed9a9 1/* opserv.h - IRC Operator assistant service
2 * Copyright 2000-2004 srvx Development Team
3 *
83ff05c3 4 * This file is part of x3.
d76ed9a9 5 *
d0f04f71 6 * x3 is free software; you can redistribute it and/or modify
d76ed9a9 7 * it under the terms of the GNU General Public License as published by
348683aa 8 * the Free Software Foundation; either version 3 of the License, or
d76ed9a9 9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with srvx; if not, write to the Free Software Foundation,
18 * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
19 */
20
21#ifndef _opserv_h
22#define _opserv_h
23
08895577 24#define DEFCON_NO_NEW_CHANNELS 1 /* No New Channel Registrations */
25#define DEFCON_NO_NEW_NICKS 2 /* No New Nick Registrations */
0272358e 26#define DEFCON_NO_MODE_CHANGE 4 /* No channel MODE changes */
08895577 27#define DEFCON_FORCE_CHAN_MODES 8 /* Force Chan Mode */
28#define DEFCON_REDUCE_SESSION 16 /* Reduce Session Limit */
29#define DEFCON_NO_NEW_CLIENTS 32 /* Kill any NEW clients */
30#define DEFCON_OPER_ONLY 64 /* Restrict services to oper's only */
31#define DEFCON_SILENT_OPER_ONLY 128 /* Silently ignore non-opers */
32#define DEFCON_GLINE_NEW_CLIENTS 256 /* Gline any new clients */
33#define DEFCON_NO_NEW_MEMOS 512 /* No New Memos Sent */
0272358e 34#define DEFCON_SHUN_NEW_CLIENTS 1024 /* Shun any new clients */
08895577 35
36extern int DefCon[6];
37extern int checkDefCon(int level);
38extern void DefConProcess(struct userNode *user);
39extern void defcon_timeout(UNUSED_ARG(void *data));
0272358e 40
d76ed9a9 41void init_opserv(const char *nick);
42unsigned int gag_create(const char *mask, const char *owner, const char *reason, time_t expires);
43int opserv_bad_channel(const char *name);
47956fc5 44struct routingPlan* opserv_add_routing_plan(const char *name);
5a1daaab 45unsigned int opserv_conf_admin_level();
47956fc5 46void routing_handle_connect_failure(struct server *source, char *server, char *message);
47int activate_routing(struct svccmd *cmd, struct userNode *user, char *plan_name);
48void routing_handle_squit(char *server, char* uplink, char *message);
49void routing_handle_connect(char *server, char *uplink);
9079d26c 50void reroute_timer_reset(unsigned int time);
51void routing_init();
d76ed9a9 52
53#endif