]> jfr.im git - irc/quakenet/newserv.git/blobdiff - authext/authext.h
CHANSERV: better batcher error handling for expired accounts/accounts with no email.
[irc/quakenet/newserv.git] / authext / authext.h
index ff88fd40c7c1590384962f1a4d5dda55ebf987dd..81e58616cf749c6d74865cc03c773d56ed6c0593 100644 (file)
@@ -1,6 +1,11 @@
 #ifndef __AUTHEXT_H
 #define __AUTHEXT_H
 
+#include "../irc/irc_config.h"
+#include "../lib/flags.h"
+
+#include <sys/types.h>
+
 #define MAXAUTHNAMEEXTS 5
 
 struct nick;
@@ -12,6 +17,8 @@ typedef struct authname {
   struct nick *nicks;
   struct authname *next, *nextbyname;
   unsigned int namebucket;
+  u_int64_t flags;
+  char name[ACCOUNTLEN+1];
   /* These are extensions only used by other modules */
   void *exts[MAXAUTHNAMEEXTS];
 } authname;
@@ -25,7 +32,7 @@ authname *newauthname(void);
 void freeauthname (authname *hp);
 
 /* EXT management */
-int registerauthnameext(const char *name);
+int registerauthnameext(const char *name, int persistant);
 int findauthnameext(const char *name);
 void releaseauthnameext(int index);
 
@@ -38,4 +45,6 @@ void releaseauthname(authname *anp);
 /* Marker */
 unsigned int nextauthnamemarker(void);
 
+authname *getauthbyname(const char *name);
+
 #endif