summaryrefslogtreecommitdiff
path: root/structures.h
diff options
context:
space:
mode:
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.