diff options
author | Berke Viktor <bviktor@hexchat.org> | 2012-10-13 04:19:56 +0200 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2012-10-13 04:19:56 +0200 |
commit | b43e567dbf46d274782b1ae3851d0db696190c0b (patch) | |
tree | cbb4543465f0cb5bbda8866e95b5bf6569f53741 /src | |
parent | 77fb21c5d5db895218aea6fd7e258062702faba6 (diff) |
Show user name sent by identd
Diffstat (limited to 'src')
-rw-r--r-- | src/common/identd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/identd.c b/src/common/identd.c index ab1a7af4..5ef5e0c6 100644 --- a/src/common/identd.c +++ b/src/common/identd.c @@ -58,8 +58,8 @@ identd (char *username) identd_is_running = FALSE; - snprintf (outbuf, sizeof (outbuf), "%%\tServicing ident request from %s\n", - inet_ntoa (addr.sin_addr)); + snprintf (outbuf, sizeof (outbuf), "%%\tServicing ident request from %s with user name \"%s\"\n", + inet_ntoa (addr.sin_addr), username); PrintText (current_sess, outbuf); recv (read_sok, buf, sizeof (buf) - 1, 0); @@ -139,7 +139,7 @@ identd_ipv6 (char *username) snprintf (ipv6buf, sizeof (ipv6buf) - 1, "[SOCKET ERROR: 0x%X]", WSAGetLastError ()); } - snprintf (outbuf, sizeof (outbuf), "%%\tServicing ident request from %s\n", ipv6buf); + snprintf (outbuf, sizeof (outbuf), "%%\tServicing ident request from %s with user name \"%s\"\n", ipv6buf, username); PrintText (current_sess, outbuf); recv (read_sok, buf, sizeof (buf) - 1, 0); |