]> jfr.im git - irc/quakenet/newserv.git/commitdiff
whowas: Treat glines as kills.
authorGunnar Beutner <redacted>
Mon, 5 Aug 2013 18:15:02 +0000 (20:15 +0200)
committerGunnar Beutner <redacted>
Mon, 5 Aug 2013 18:15:02 +0000 (20:15 +0200)
--HG--
branch : shroudtrusts

whowas/whowas.c

index 914d0ba4bff6f608a816409424ba6accedf1f419..af38da29bca567b8ad8bb73fac106ffe5f574a79 100644 (file)
@@ -145,8 +145,12 @@ static void whowas_handlequitorkill(int hooknum, void *arg) {
     }
 
     ww->type = WHOWAS_KILL;
-  } else
-    ww->type = WHOWAS_QUIT;
+  } else {
+    if (strncmp(reason, "G-lined", 7) == 0)
+      ww->type = WHOWAS_KILL;
+    else
+      ww->type = WHOWAS_QUIT;
+  }
 
   ww->reason = getsstring(reason, WW_REASONLEN);