]>
jfr.im git - irc/quakenet/newserv.git/blob - server/server.h
6 #include "../lib/sstring.h"
7 #include "../irc/irc_config.h"
8 #include "../lib/flags.h"
10 #define LS_INVALID 0 /* No server here */
11 #define LS_LINKED 1 /* Server fully linked */
12 #define LS_LINKING 2 /* This actual server is bursting */
13 #define LS_PLINKING 3 /* Some other server between here and there is bursting */
14 #define LS_SQUIT 4 /* This server is being deleted due to a SQUIT */
16 #define SMODE_HUB 0x0001
17 #define SMODE_IPV6 0x0002
18 #define SMODE_SERVICE 0x0004
19 #define SMODE_OPERNAME 0x0008
21 #define SMODE_ALL 0x000F
23 extern const flag smodeflags
[];
35 extern server serverlist
[MAXSERVERS
];
37 int handleservermsg(void *source
, int cargc
, char **cargv
);
38 int handleeobmsg(void *source
, int cargc
, char **argv
);
39 int handlesquitmsg(void *source
, int cargc
, char **cargv
);
40 void handledisconnect(int hooknum
, void *arg
);
41 void deleteserver(long servernum
);
42 int findserver(const char *name
);