]> jfr.im git - irc/quakenet/newserv.git/commitdiff
newsearch: Fix reason operator (again).
authorGunnar Beutner <redacted>
Tue, 6 Aug 2013 20:22:23 +0000 (22:22 +0200)
committerGunnar Beutner <redacted>
Tue, 6 Aug 2013 20:22:23 +0000 (22:22 +0200)
newsearch/ns-reason.c

index 88b350a02069293fe28f9ba15662cbda40bff098..6c354c08a856536af817e9f23ef6aa95ea09d539 100644 (file)
@@ -30,9 +30,9 @@ void *reason_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput) {
   nick *np = (nick *)theinput;
   whowas *ww = (whowas *)np->next;
 
-  if (ww->type == WHOWAS_RENAME)
+  if (!ww->reason)
     return (void *)0;
-  
+
   return (void *)ww->reason->content;
 }