X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/354b14ea09f3b6c5c4edab5b4fd0553415787196..f28b61f26dec986fb87602b5c75ad812b8297d85:/newsearch/formats.c diff --git a/newsearch/formats.c b/newsearch/formats.c index abb7bd06..edc0ebce 100644 --- a/newsearch/formats.c +++ b/newsearch/formats.c @@ -13,7 +13,7 @@ void printnick(searchCtx *ctx, nick *sender, nick *np) { char hostbuf[HOSTLEN+NICKLEN+USERLEN+4]; ctx->reply(sender,"%s [%s] (%s) (%s)",visiblehostmask(np,hostbuf), - IPtostr(np->p_ipaddr), printflags(np->umodes, umodeflags), np->realname->name->content); + IPtostr(np->ipaddress), printflags(np->umodes, umodeflags), np->realname->name->content); } void printnick_channels(searchCtx *ctx, nick *sender, nick *np) { @@ -150,3 +150,7 @@ void printuser(searchCtx *ctx, nick *sender, authname *aup) { ctx->reply(sender,"%d", aup->userid); } +void printwhowas(searchCtx *ctx, nick *sender, whowas *ww) { + ctx->reply(sender,"%s", whowas_format(ww)); + ctx->reply(sender,"%s", whowas_formatchannels(ww)); +}