summaryrefslogtreecommitdiff
path: root/structures.h
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-09-06 21:41:28 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-09-06 21:41:28 +0100
commit38bd2b2761b7d0f556945ffad78f73536e12e157 (patch)
tree241402b5b883f77e3fb20608f173db5028484323 /structures.h
parentfb3963446890cbb966db2d463813d15701cd8fb1 (diff)
Send remote IP addresses instead of fd numbers in NOTICEs to clients and print both in related debugprint()s.
Diffstat (limited to 'structures.h')
-rw-r--r--structures.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/structures.h b/structures.h
index d9b1f7f..a959a92 100644
--- a/structures.h
+++ b/structures.h
@@ -99,6 +99,7 @@ struct client {
int pendingnames; // Count of RPL_NAMREPLYs the client is waiting on.
int pendingcap; // Whether the client is still negotiating IRCv3 CAPabilities. 0 = no, 1 = yes, -1 = just finished (so register them as if they had just sent USER).
char clientcode[CLIENTCODELEN]; // This client's client code
+ char remoteip[INET6_ADDRSTRLEN]; // Client's remote IP address (assume up to IPv6 size)
};
// Structure of client codes. Used to track the last time a client identifying as a given client connected to handle auto replay for a known client.