diff options
| author | 2014-01-12 16:40:55 +0100 | |
|---|---|---|
| committer | 2014-01-12 16:40:55 +0100 | |
| commit | 32fff791bde1e92fa07b1a9be3af70d271abe72e (patch) | |
| tree | 63b52b29e0d662823718f07268ed067465461d7e /include | |
| parent | When you specified more than 4 servers in set::timesynch::server you could (diff) | |
| download | unrealircd-32fff791bde1e92fa07b1a9be3af70d271abe72e.tar.gz unrealircd-32fff791bde1e92fa07b1a9be3af70d271abe72e.tar.bz2 unrealircd-32fff791bde1e92fa07b1a9be3af70d271abe72e.zip | |
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).
Diffstat (limited to 'include')
| -rw-r--r-- | include/struct.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |
