strncpy(ww->nick, np->nick, NICKLEN);
strncpy(ww->ident, np->ident, USERLEN);
strncpy(ww->host, np->host->name->content, HOSTLEN);
+ memcpy(&ww->ip, &np->p_ipaddr, sizeof(struct irc_in_addr));
strncpy(ww->realname, np->realname->name->content, REALLEN);
ww->seen = getnettime();
char timebuf[30];
char hostmask[WW_MASKLEN + 1];
- snprintf(hostmask, sizeof(hostmask), "%s!%s@%s", ww->nick, ww->ident, ww->host);
+ snprintf(hostmask, sizeof(hostmask), "%s!%s@%s [%s]", ww->nick, ww->ident, ww->host, IPtostr(ww->ip));
strftime(timebuf, 30, "%d/%m/%y %H:%M:%S", localtime(&(ww->seen)));
if (ww->type == WHOWAS_RENAME)