]> jfr.im git - irc/quakenet/newserv.git/commitdiff
whowas: Show usermodes.
authorGunnar Beutner <redacted>
Mon, 5 Aug 2013 17:26:03 +0000 (19:26 +0200)
committerGunnar Beutner <redacted>
Mon, 5 Aug 2013 17:26:03 +0000 (19:26 +0200)
--HG--
branch : shroudtrusts

whowas/whowas.c

index 7a6748c12f311575e58c018b6e74bbc55d495071..1269f23e1ffcb40a3f6addfa7288f0f73a9f035d 100644 (file)
@@ -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)