]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Don't log kill paths when a user is killed.
authorsplidge <redacted>
Sun, 3 Aug 2008 22:54:33 +0000 (23:54 +0100)
committersplidge <redacted>
Sun, 3 Aug 2008 22:54:33 +0000 (23:54 +0100)
chanserv/authtracker/authtracker_hooks.c

index 411a04c1d8ef11682b45d4cb13ce2a2de37c89fa..2b9ffc7dd1b636115b9311d383c5a94e334eeeeb 100644 (file)
@@ -47,6 +47,7 @@ void at_handlequitorkill(int hooknum, void *arg) {
   nick *np=args[0];
   char *reason=args[1];
   char *rreason;
+  char resbuf[512];
   unsigned long userid;
   
   /* Ignore unauthed users, or those with no accountts */
@@ -57,8 +58,10 @@ void at_handlequitorkill(int hooknum, void *arg) {
   at_lastauthts=np->accountts;
   at_lastnum=np->numeric;
 
-  if (hooknum==HOOK_NICK_KILL && (rreason=strchr(reason,'@')))
-    reason=rreason;
+  if (hooknum==HOOK_NICK_KILL && (rreason=strchr(reason,' '))) {
+    sprintf(resbuf,"Killed%s",rreason);
+    reason=resbuf;
+  }
   
   at_logquit(userid, np->accountts, time(NULL), reason);
 }