]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/ns-newnick.c
LUA: add function for channel chanop notice
[irc/quakenet/newserv.git] / newsearch / ns-newnick.c
index ec7d5acac66246275e7927b1dabd1c3f3c5f9629..8c19556d8bd63dde07b200f9fc53b1012999b889 100644 (file)
@@ -30,7 +30,7 @@ void *newnick_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 "";
   
   return (void *)ww->newnick->content;