From 93e530320e024e9119fb8717459ef618086c5839 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Thu, 16 May 2019 23:40:43 +0100 Subject: Correctly handle nicks changing and actually track users PARTing channels. Also change nickuserhost to store the leading colon (:) since it's always needed (so far). --- functions.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'functions.h') diff --git a/functions.h b/functions.h index 4e525eb..de631e9 100644 --- a/functions.h +++ b/functions.h @@ -13,6 +13,8 @@ #include #include +#define MAXDATASIZE 513 // max number of bytes we can get at once (RFC2812 says 512, plus one for null terminator) + // getstdin() return codes #define OK 0 #define NO_INPUT 1 @@ -33,4 +35,7 @@ void extractfinalparameter(char *string); // Extract the IRC nick from a prefix void extractnickfromprefix(char *string); +// Update an existing nickuserhost string with a new nick +void updatenickuserhost(char *nickuserhost, char *nick); + #endif -- cgit v1.2.3