From: Gunnar Beutner Date: Mon, 5 Aug 2013 17:26:03 +0000 (+0200) Subject: whowas: Show usermodes. X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/commitdiff_plain/432206be84e594373c69137a26ec6010eda56f67 whowas: Show usermodes. --HG-- branch : shroudtrusts --- diff --git a/whowas/whowas.c b/whowas/whowas.c index 7a6748c1..1269f23e 100644 --- a/whowas/whowas.c +++ b/whowas/whowas.c @@ -195,10 +195,11 @@ const char *whowas_format(whowas *ww) { char timebuf[30]; char hostmask[512]; - snprintf(hostmask, sizeof(hostmask), "%s!%s@%s%s%s [%s]", + snprintf(hostmask, sizeof(hostmask), "%s!%s@%s%s%s [%s] (%s)", np->nick, np->ident, np->host->name->content, np->auth ? "/" : "", np->auth ? np->authname : "", - IPtostr(np->p_ipaddr)); + IPtostr(np->p_ipaddr), + printflags(np->umodes, umodeflags)); strftime(timebuf, sizeof(timebuf), "%d/%m/%y %H:%M:%S", localtime(&(ww->timestamp))); if (ww->type == WHOWAS_RENAME)