]> jfr.im git - solanum.git/blame - include/ircd.h
refuse opers setting an invalidly long k-line reason
[solanum.git] / include / ircd.h
CommitLineData
212380e3
AC
1/*
2 * ircd-ratbox: A slightly useful ircd.
3 * ircd.h: A header for the ircd startup routines.
4 *
5 * Copyright (C) 1990 Jarkko Oikarinen and University of Oulu, Co Center
6 * Copyright (C) 1996-2002 Hybrid Development Team
7 * Copyright (C) 2002-2004 ircd-ratbox development team
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
22 * USA
212380e3
AC
23 */
24
25#ifndef INCLUDED_ircd_h
26#define INCLUDED_ircd_h
27
9b8e9eb3 28#include "defaults.h"
212380e3
AC
29
30struct Client;
5b96d9a6 31struct rb_dlink_list;
212380e3
AC
32
33struct SetOptions
34{
35 int maxclients; /* max clients allowed */
36 int autoconn; /* autoconn enabled for all servers? */
37
212380e3
AC
38 int floodcount; /* Number of messages in 1 second */
39 int ident_timeout; /* timeout for identd lookups */
40
41 int spam_num;
42 int spam_time;
43
44 char operstring[REALLEN];
45 char adminstring[REALLEN];
46};
47
48struct Counter
49{
50 int oper; /* Opers */
51 int total; /* total clients */
52 int invisi; /* invisible clients */
53 int max_loc; /* MAX local clients */
54 int max_tot; /* MAX global clients */
55 unsigned long totalrestartcount; /* Total client count ever */
56};
57
58extern struct SetOptions GlobalSetOptions; /* defined in ircd.c */
59
60extern const char *creation;
61extern const char *generation;
212380e3
AC
62extern const char *infotext[];
63extern const char *serno;
749d697c 64extern const unsigned long int datecode;
212380e3
AC
65extern const char *ircd_version;
66extern const char *logFileName;
67extern const char *pidFileName;
33d43d4f
MU
68extern volatile sig_atomic_t dorehash;
69extern volatile sig_atomic_t dorehashbans;
70extern volatile sig_atomic_t doremotd;
f66f0baa 71extern bool kline_queued;
503727d1
EM
72extern bool server_state_foreground;
73extern bool opers_see_all_users; /* sno_farconnect.so loaded, operspy without
74 accountability, etc */
212380e3
AC
75
76extern struct Client me;
5b96d9a6 77extern rb_dlink_list global_client_list;
212380e3
AC
78extern struct Client *local[];
79extern struct Counter Count;
212380e3
AC
80extern int default_server_capabs;
81
82extern time_t startup_time;
83
84extern int splitmode;
85extern int splitchecking;
86extern int split_users;
87extern int split_servers;
a8ac1114 88extern int eob_count;
212380e3 89
5b96d9a6
AC
90extern rb_dlink_list unknown_list;
91extern rb_dlink_list lclient_list;
92extern rb_dlink_list serv_list;
93extern rb_dlink_list global_serv_list;
94extern rb_dlink_list local_oper_list;
95extern rb_dlink_list oper_list;
96extern rb_dlink_list dead_list;
212380e3 97
212380e3
AC
98extern int testing_conf;
99
fa832850
AC
100extern struct ev_entry *check_splitmode_ev;
101
bfc44622
AC
102extern bool ircd_ssl_ok;
103extern bool ircd_zlib_ok;
f691939a
VY
104extern int maxconnections;
105
6be270b1 106void ircd_shutdown(const char *reason) __attribute__((noreturn));
fd5af3d0 107
212380e3 108#endif