]>
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 #define SIsHub(x) ((x)->flags & SMODE_HUB)
24 #define SIsIPv6(x) ((x)->flags & SMODE_IPV6)
25 #define SIsService(x) ((x)->flags & SMODE_SERVICE)
26 #define SHasOpername(x) ((x)->flags & SMODE_OPERNAME)
28 extern const flag smodeflags
[];
41 extern server serverlist
[MAXSERVERS
];
43 int handleservermsg(void *source
, int cargc
, char **cargv
);
44 int handleeobmsg(void *source
, int cargc
, char **argv
);
45 int handlesquitmsg(void *source
, int cargc
, char **cargv
);
46 void handledisconnect(int hooknum
, void *arg
);
47 void deleteserver(long servernum
);
48 int findserver(const char *name
);
49 unsigned int nextservermarker(void);