]> jfr.im git - irc/quakenet/newserv.git/blobdiff - trusts/trusts.c
fix: warning: format not a string literal and no format arguments
[irc/quakenet/newserv.git] / trusts / trusts.c
index d2f811aa3e306214a847178b3932d5154c1110b0..c15ea114d33140fc5f6679af63c1137142b4e930 100644 (file)
@@ -3,6 +3,7 @@
 #include "../core/hooks.h"
 #include "../core/error.h"
 #include "../core/nsmalloc.h"
+#include "../server/server.h"
 #include "trusts.h"
 
 void trusts_registerevents(void);
@@ -102,3 +103,11 @@ void releasetgext(int index) {
   for(tg=tglist;tg;tg=tg->next)
     tg->exts[index] = NULL;
 }
+
+int trusts_fullyonline(void) {
+  if(myhub == -1)
+    return 0;
+
+  return serverlist[myhub].linkstate == LS_LINKED;
+}
+