]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/formats.c
Merge branch 'master' into chanserv-live
[irc/quakenet/newserv.git] / newsearch / formats.c
index 22c1e2ddb89d08c7d3fb2fe00b146d78cf7eb2f7..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) {
@@ -146,3 +146,11 @@ void printchannel_services(searchCtx *ctx, nick *sender, chanindex *cip) {
   }
 }
 
+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));
+}