]> jfr.im git - irc/quakenet/newserv.git/blobdiff - versionscan/versionscan.c
Merge chanserv-live into default.
[irc/quakenet/newserv.git] / versionscan / versionscan.c
index a32eda6e59e6e7a1df8a6cceadee52f059a4436b..2047de2b51ff57150577c1c664f6d647dc480bec 100644 (file)
@@ -1,5 +1,6 @@
 #include "versionscan.h"
 #include "../lib/version.h"
+#include "../glines/glines.h"
 
 MODULE_VERSION("")
 
@@ -22,7 +23,7 @@ void versionscan_addstat(char* reply) {
   vsstatistic* v, *pv;
   
   replylen = strlen(reply);
-  replycrc = crc32i(reply);
+  replycrc = irc_crc32i(reply);
   
   pv=NULL;
   for (v=vsstats; v; v=v->next) {
@@ -472,6 +473,7 @@ int versionscan_changelev(void* sender, int cargc, char** cargv) {
             vsauths=pv->next;
             free(pv);
           }
+          break;
         }
         prevv=pv;
       }
@@ -772,11 +774,11 @@ void versionscan_handler(nick* me, int type, void** args) {
             kcount++;
             break;
           case VS_GLUSER:
-            glinebynick(sender, 3600, v->data, GLINE_ALWAYS_USER);
+            glinebynick(sender, 3600, v->data, GLINE_ALWAYS_USER, "versionscan");
             gcount++;
             break;
           case VS_GLHOST:
-            glinebynick(sender, 3600, v->data, 0);
+            glinebynick(sender, 3600, v->data, 0, "versionscan");
             gcount++;
             break;
           default: