aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2024-06-14 11:17:21 -0400
committerTest_User <hax@andrewyu.org>2024-06-14 11:17:21 -0400
commit1328829eef7a1beb6e7558f60cbe9d1c3935d97a (patch)
treedad162b85ef951027fe800858ba95af19f78385a /main.c
parent80bd818208729b24262141b9068c427f9d8a097a (diff)
downloadhaxircd-1328829eef7a1beb6e7558f60cbe9d1c3935d97a.tar.gz
haxircd-1328829eef7a1beb6e7558f60cbe9d1c3935d97a.zip
Psuedoclients
Diffstat (limited to 'main.c')
-rw-r--r--main.c32
1 files changed, 20 insertions, 12 deletions
diff --git a/main.c b/main.c
index 51f40b7..ae69dcc 100644
--- a/main.c
+++ b/main.c
@@ -54,6 +54,14 @@
#include "protocols/inspircd2.h"
#endif
+#ifdef USE_PSUEDOCLIENTS
+#include "psuedoclients.h"
+#endif
+
+#ifdef USE_HAXSERV_PSUEDOCLIENT
+#include "psuedoclients/haxserv.h"
+#endif
+
pthread_attr_t pthread_attr;
pthread_mutexattr_t pthread_mutexattr;
@@ -63,33 +71,33 @@ int main(void) {
if (init_general_network() != 0)
return 1;
-#ifdef USE_SERVER
- if (init_server_network() != 0)
+#ifdef USE_PLAINTEXT
+ if (init_plaintext_network() != 0) // there's not really anything to do ahead of time with plain tcp networking, this is just here for consistency
return 1;
#endif
-#ifdef USE_CLIENT
- if (init_client_network() != 0)
+#ifdef USE_GNUTLS
+ if (init_gnutls_network() != 0)
return 1;
#endif
-#ifdef USE_PLAINTEXT
- if (init_plaintext_network() != 0) // there's not really anything to do ahead of time with plain tcp networking, this is just here for consistency (and will probably be optimized out by the compiler)
+#ifdef USE_OPENSSL
+ if (init_openssl_network() != 0)
return 1;
#endif
-#ifdef USE_GNUTLS
- if (init_gnutls_network() != 0)
+#ifdef USE_SERVER
+ if (init_server_network() != 0)
return 1;
#endif
-#ifdef USE_OPENSSL
- if (init_openssl_network() != 0)
+#ifdef USE_CLIENT
+ if (init_client_network() != 0)
return 1;
#endif
-#ifdef USE_INSPIRCD2_PROTOCOL
- if (init_inspircd2_protocol() != 0)
+#ifdef USE_PSUEDOCLIENTS
+ if (init_psuedoclients() != 0)
return 1;
#endif