]> jfr.im git - irc/quakenet/newserv.git/blobdiff - authext/authext.c
build: Keep track of #include dependencies.
[irc/quakenet/newserv.git] / authext / authext.c
index 0b395d764394b778106d678c99233856c4f2d0d1..828428fc0e3849657a5e5267f91ff61a2c9f125a 100644 (file)
@@ -6,10 +6,13 @@
 #include "../nick/nick.h"
 #include "../core/hooks.h"
 #include "../lib/strlfunc.h"
+#include "../lib/version.h"
 
 #include <string.h>
 #include <stdio.h>
 
+MODULE_VERSION("")
+
 #define ALLOCUNIT 100
 
 #define authnamehash(x)   ((x)%AUTHNAMEHASHSIZE)
@@ -23,7 +26,7 @@ static authname *authnametablebyname[AUTHNAMEHASHSIZE];
 
 static struct {
   sstring *name;
-  int persistant;
+  int persistent;
 } authnameexts[MAXAUTHNAMEEXTS];
 
 static void authextstats(int hooknum, void *arg);
@@ -63,7 +66,7 @@ void freeauthname (authname *anp) {
   freeauthnames=anp;
 }
 
-int registerauthnameext(const char *name, int persistant) {
+int registerauthnameext(const char *name, int persistent) {
   int i;
 
   if (findauthnameext(name)!=-1) {
@@ -74,7 +77,7 @@ int registerauthnameext(const char *name, int persistant) {
   for (i=0;i<MAXAUTHNAMEEXTS;i++) {
     if (authnameexts[i].name==NULL) {
       authnameexts[i].name=getsstring(name,100);
-      authnameexts[i].persistant=persistant;
+      authnameexts[i].persistent=persistent;
       return i;
     }
   }
@@ -173,7 +176,7 @@ void releaseauthname(authname *anp) {
     anp->nicks = NULL;
 
     for(i=0;i<MAXAUTHNAMEEXTS;i++)
-      if(authnameexts[i].persistant && anp->exts[i]!=NULL)
+      if(authnameexts[i].persistent && anp->exts[i]!=NULL)
         return;
 
     triggerhook(HOOK_AUTH_LOSTAUTHNAME, (void *)anp);