summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorgeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2005-10-01 21:54:54 +0000
committergeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2005-10-01 21:54:54 +0000
commit9207683d9db3401476c768f1a89b00284f2063e4 (patch)
tree1b2dce1deb04259adc528da71c52d994d8124b85 /include
parentd486661031bd66feaa7ae76afc2cd7ed5a3cb15b (diff)
BUILD : 1.7.11 (908) BUGS : NOTES : Created a CapabInfo table to allow easier handling of capab tokens/flags
git-svn-id: svn://svn.anope.org/anope/trunk@908 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@654 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include')
-rw-r--r--include/extern.h1
-rw-r--r--include/services.h16
2 files changed, 13 insertions, 4 deletions
diff --git a/include/extern.h b/include/extern.h
index 51a78a684..11af90253 100644
--- a/include/extern.h
+++ b/include/extern.h
@@ -988,6 +988,7 @@ E Server *servlist;
E Server *me_server;
E Server *serv_uplink;
E uint32 uplink_capab;
+E CapabInfo capab_info[];
E Server *first_server(int flags);
E Server *next_server(int flags);
diff --git a/include/services.h b/include/services.h
index e0017256e..b155c9f47 100644
--- a/include/services.h
+++ b/include/services.h
@@ -1282,18 +1282,26 @@ typedef struct ircd_modes_ {
#define MUT_DEPROTECT 6
#define MUT_PROTECT 7
+/*************************************************************************/
+/* CAPAB stuffs */
+
+typedef struct capabinfo_ CapabInfo;
+struct capabinfo_ {
+ char *token;
+ uint32 flag;
+};
-#define CAPAB_NOQUIT 0x00000001
-#define CAPAB_TSMODE 0x00000002
+#define CAPAB_NOQUIT 0x00000001
+#define CAPAB_TSMODE 0x00000002
#define CAPAB_UNCONNECT 0x00000004
#define CAPAB_NICKIP 0x00000008
#define CAPAB_NSJOIN 0x00000010
-#define CAPAB_ZIP 0x00000020
+#define CAPAB_ZIP 0x00000020
#define CAPAB_BURST 0x00000040
#define CAPAB_TS3 0x00000080
#define CAPAB_TS5 0x00000100
#define CAPAB_DKEY 0x00000200
-#define CAPAB_DOZIP 0x00000400
+#define CAPAB_DOZIP 0x00000400
#define CAPAB_DODKEY 0x00000800
#define CAPAB_QS 0x00001000
#define CAPAB_SCS 0x00002000