diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2014-01-26 20:08:35 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2014-01-26 20:08:35 +0000 |
commit | 65d3c7890ce63bc8dc463424177e0e2967bd11bf (patch) | |
tree | a2c35eed01907dd2eb0f0bd07452e3039e54260b | |
parent | 4098cf85d057894dace92ce9a1b0b4ff3f808c3a (diff) |
- client.h: add separate definition for services IDs instead of using HOSTLEN
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2950 82007160-df01-0410-b94d-b575c5fd34c7
-rw-r--r-- | include/client.h | 3 | ||||
-rw-r--r-- | include/ircd_defs.h | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/client.h b/include/client.h index 6f9ffdc..0334f1a 100644 --- a/include/client.h +++ b/include/client.h @@ -409,8 +409,7 @@ struct Client char away[AWAYLEN + 1]; /**< Client's AWAY message. Can be set/unset via AWAY command */ char name[HOSTLEN + 1]; /**< unique name for a client nick or host */ - char svid[HOSTLEN + 1]; /**< Services ID. XXX: Going with HOSTLEN for now. NICKLEN might be too small - if dealing with timestamps */ + char svid[SVIDLEN + 1]; /**< Services ID. */ char id[IDLEN + 1]; /**< client ID, unique ID per client */ /* * client->username is the username from ident or the USER message, diff --git a/include/ircd_defs.h b/include/ircd_defs.h index bf68184..85cf3a2 100644 --- a/include/ircd_defs.h +++ b/include/ircd_defs.h @@ -37,7 +37,8 @@ #define HOSTLEN 63 /* Length of hostname. Updated to comply with RFC 1123 */ #define NICKLEN 30 -#define USERLEN 10 +#define USERLEN 10 +#define SVIDLEN 30 #define PORTNAMELEN 6 /* ":31337" */ #define HOSTIPLEN 45 /* sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255") */ |