]> jfr.im git - irc/quakenet/newserv.git/commitdiff
fix stupid mistake when determining the size of the channel in gline/kill ...
authorIan Barker <redacted>
Tue, 5 Jun 2007 23:22:29 +0000 (00:22 +0100)
committerIan Barker <redacted>
Tue, 5 Jun 2007 23:22:29 +0000 (00:22 +0100)
newsearch/ns-gline.c
newsearch/ns-kill.c

index ec1d5650be3f90fba615e65e5ee4249d130bbdbd..7f6a27d4e456dc2d0a07998bcf8da4e03d6296df 100644 (file)
@@ -75,7 +75,7 @@ void *gline_exe(struct searchNode *thenode, void *theinput) {
   if (localdata->type == SEARCHTYPE_CHANNEL) {
     cip = (chanindex *)theinput;
     cip->marker = localdata->marker;
-    localdata->count += (localdata->count + cip->channel->users->totalusers);
+    localdata->count += cip->channel->users->totalusers;
   }
   else {
     np = (nick *)theinput;
index ef9ac9f85eb773172abd95eb34d09969ab8e52f3..a1b7e7ec0978cc9027596c325817cf834a4adcab 100644 (file)
@@ -64,7 +64,7 @@ void *kill_exe(struct searchNode *thenode, void *theinput) {
   if (localdata->type == SEARCHTYPE_CHANNEL) {
     cip = (chanindex *)theinput;
     cip->marker = localdata->marker;
-    localdata->count += (localdata->count + cip->channel->users->totalusers);
+    localdata->count += cip->channel->users->totalusers;
   }
   else {
     np = (nick *)theinput;