]> jfr.im git - irc/quakenet/newserv.git/commitdiff
r159@defender: slug | 2005-05-28 13:17:51 +0100
authorChris Porter <redacted>
Sat, 28 May 2005 11:18:00 +0000 (12:18 +0100)
committerChris Porter <redacted>
Sat, 28 May 2005 11:18:00 +0000 (12:18 +0100)
 Fixed iddly bug.

regexgline/regexgline.c

index f71e4cdad7ce2496e5140117d446590384e57363..09c9501185d80f1545b9618ab6e839d0eca04437 100644 (file)
@@ -13,6 +13,7 @@
 typedef struct rg_glinenode {
   nick *np;
   struct rg_struct *reason;
+  short punish;
   struct rg_glinenode *next;
 } rg_glinenode;
 
@@ -124,7 +125,7 @@ void rg_flushglines(struct rg_glinelist *gll) {
   struct rg_glinenode *nn, *pn;
   for(nn=gll->start;nn;nn=pn) {
     pn = nn->next;
-    if(nn->reason->type == 3)
+    if(nn->punish == 3)
       killuser(NULL, nn->np, "%s (ID: %08lx)", nn->reason->reason->content, nn->reason->glineid);
     free(nn);
   }
@@ -775,6 +776,7 @@ void rg_dogline(struct rg_glinelist *gll, nick *np, struct rg_struct *rp, char *
       }
       nn->np = np;
       nn->reason = rp;
+      nn->punish = 3;
     }
     return;
   }