From 32fff791bde1e92fa07b1a9be3af70d271abe72e Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Sun, 12 Jan 2014 16:40:55 +0100 Subject: [PATCH] Added SVIDLEN so this value is now separate from NICKLEN. Previously if you would lower NICKLEN to 9 then services timestamps would be cut off. Reported by Jobe (#4248). --- include/struct.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/struct.h b/include/struct.h index d22d8c33a..7556da92f 100644 --- a/include/struct.h +++ b/include/struct.h @@ -174,6 +174,7 @@ typedef unsigned int u_int32_t; /* XXX Hope this works! */ #define NICKLEN 30 #define USERLEN 10 #define REALLEN 50 +#define SVIDLEN 30 #define TOPICLEN 307 #define CHANNELLEN 32 #define PASSWDLEN 48 /* was 20, then 32, now 48. */ @@ -814,7 +815,7 @@ struct User { * which is less useful in the modern world of IRC where nicks are grouped to * accounts, so it is now a string. */ - char svid[NICKLEN + 1]; + char svid[SVIDLEN + 1]; signed char refcnt; /* Number of times this block is referenced */ unsigned short joined; /* number of channels joined */