]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/formats.c
LUA: port luadb to dbapi2 to drop postgres dependency
[irc/quakenet/newserv.git] / newsearch / formats.c
index 7617bff968c340fdf48a8befcced9b429a6aae4e..edc0ebce016d081846471e587669c22a47209071 100644 (file)
@@ -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) {
@@ -152,4 +152,5 @@ void printuser(searchCtx *ctx, nick *sender, authname *aup) {
 
 void printwhowas(searchCtx *ctx, nick *sender, whowas *ww) {
   ctx->reply(sender,"%s", whowas_format(ww));
+  ctx->reply(sender,"%s", whowas_formatchannels(ww));
 }