mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-13 09:10:20 +00:00
Text event for identd
This commit is contained in:
@@ -58,9 +58,7 @@ identd (char *username)
|
||||
|
||||
identd_is_running = FALSE;
|
||||
|
||||
snprintf (outbuf, sizeof (outbuf), "%%\tServicing ident request from %s as %s\n",
|
||||
inet_ntoa (addr.sin_addr), username);
|
||||
PrintText (current_sess, outbuf);
|
||||
EMIT_SIGNAL (XP_TE_IDENTD, current_sess, inet_ntoa (addr.sin_addr), username, NULL, NULL, 0);
|
||||
|
||||
recv (read_sok, buf, sizeof (buf) - 1, 0);
|
||||
buf[sizeof (buf) - 1] = 0; /* ensure null termination */
|
||||
@@ -143,8 +141,7 @@ identd_ipv6 (char *username)
|
||||
snprintf (ipv6buf, sizeof (ipv6buf) - 1, "[SOCKET ERROR: 0x%X]", WSAGetLastError ());
|
||||
}
|
||||
|
||||
snprintf (outbuf, sizeof (outbuf), "%%\tServicing ident request from %s as %s\n", ipv6buf, username);
|
||||
PrintText (current_sess, outbuf);
|
||||
EMIT_SIGNAL (XP_TE_IDENTD, current_sess, ipv6buf, username, NULL, NULL, 0);
|
||||
|
||||
recv (read_sok, buf, sizeof (buf) - 1, 0);
|
||||
buf[sizeof (buf) - 1] = 0; /* ensure null termination */
|
||||
|
||||
Reference in New Issue
Block a user