summaryrefslogtreecommitdiff
path: root/functions.h
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-05-16 23:40:43 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-05-16 23:40:43 +0100
commit93e530320e024e9119fb8717459ef618086c5839 (patch)
tree779e015cba061c55362f650638e5b92d8f53dc63 /functions.h
parent57faf310db4c7d7d07a5695fb305c481e040e4fb (diff)
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).
Diffstat (limited to 'functions.h')
-rw-r--r--functions.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/functions.h b/functions.h
index 4e525eb..de631e9 100644
--- a/functions.h
+++ b/functions.h
@@ -13,6 +13,8 @@
#include <arpa/inet.h>
#include <sys/select.h>
+#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