]> jfr.im git - irc/quakenet/newserv.git/blobdiff - trusts/trusts.h
Implement --help parameter.
[irc/quakenet/newserv.git] / trusts / trusts.h
index de5523d5ea5b6097971b55b7480e9db62c84edc5..fbec7025cb334cc2b59260c6ea9dd0f46c325a63 100644 (file)
@@ -13,6 +13,8 @@
 #define COMMENTLEN 300
 #define TRUSTNAMELEN 100
 #define TRUSTHOSTLEN 100
+#define CREATEDBYLEN NICKLEN + 1
+
 #define MAXTGEXTS 5
 
 #define MAXTRUSTEDFOR 50000
@@ -39,7 +41,6 @@ typedef struct trusthost {
 
   unsigned int count;
 
-
   struct trusthost *parent, *children;
   unsigned int marker;
 
@@ -57,7 +58,7 @@ typedef struct trustgroup {
   unsigned int maxusage;
   time_t expires;
   time_t lastseen;
-  time_t lastmaxuserreset;
+  time_t lastmaxusereset;
   sstring *createdby, *contact, *comment;
 
   trusthost *hosts;
@@ -150,4 +151,7 @@ typedef void (*TrustDBMigrationCallback)(int, void *);
 void trusts_newnick(nick *, int);
 void trusts_lostnick(nick *, int);
 
+/* trusts_api.c */
+int istrusted(nick *);
+
 #endif