]> jfr.im git - irc/quakenet/newserv.git/commitdiff
whowas: Fix reason newsearch operator.
authorGunnar Beutner <redacted>
Tue, 6 Aug 2013 19:58:03 +0000 (21:58 +0200)
committerGunnar Beutner <redacted>
Tue, 6 Aug 2013 19:58:03 +0000 (21:58 +0200)
--HG--
branch : shroudtrusts

newsearch/ns-reason.c

index 6a52882505fa682d78f1e7f96695d782386dadc9..bbaab5dbf4b07e04b4ad54939c4dc2de66eded62 100644 (file)
@@ -30,7 +30,7 @@ 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->type == WHOWAS_RENAME)
     return (void *)0;
   
   return (void *)ww->reason->content;