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