]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/formats.c
CHANSERV: fix issue where chanserv_relay doesn't wait for db to be loaded before...
[irc/quakenet/newserv.git] / newsearch / formats.c
index abb7bd06f9d664900d8de78cfa71ecb21cd2e8f0..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) {
@@ -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));
+}