aboutsummaryrefslogtreecommitdiff
path: root/pseudoclients.c
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2024-06-24 11:08:29 -0400
committerTest_User <hax@andrewyu.org>2024-06-24 11:08:50 -0400
commitd095efe06273ec29bdc07c2cc522d6fe5a793550 (patch)
tree0eab2d9999ae71d5cff1ae682b54d17ad8aa98b5 /pseudoclients.c
parent7b3767d3988c3bb9c96f049ca8e5a829917c8426 (diff)
downloadhaxircd-d095efe06273ec29bdc07c2cc522d6fe5a793550.tar.gz
haxircd-d095efe06273ec29bdc07c2cc522d6fe5a793550.zip
The start of some services, inspircd3 support extra broken for now
Diffstat (limited to 'pseudoclients.c')
-rw-r--r--pseudoclients.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/pseudoclients.c b/pseudoclients.c
index b65a96d..8234180 100644
--- a/pseudoclients.c
+++ b/pseudoclients.c
@@ -52,6 +52,21 @@ int init_pseudoclients(void) {
return 1;
}
#endif
+#ifdef USE_SERVICES_PSEUDOCLIENT
+ {
+ void *dl_handle = dlopen("pseudoclients/services.so", RTLD_NOW | RTLD_LOCAL);
+ if (!dl_handle) {
+ puts(dlerror());
+ return 1;
+ }
+
+ pseudoclients[SERVICES_PSEUDOCLIENT].dl_handle = dl_handle;
+ pseudoclients[SERVICES_PSEUDOCLIENT].init = dlsym(dl_handle, "services_pseudoclient_init");
+
+ if (pseudoclients[SERVICES_PSEUDOCLIENT].init() != 0)
+ return 1;
+ }
+#endif
return 0;
}