]> jfr.im git - irc/quakenet/newserv.git/blobdiff - whowas/whowas.c
whowas: Treat glines as kills.
[irc/quakenet/newserv.git] / 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);