From 65d3c7890ce63bc8dc463424177e0e2967bd11bf Mon Sep 17 00:00:00 2001 From: michael Date: Sun, 26 Jan 2014 20:08:35 +0000 Subject: - 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 --- include/client.h | 3 +-- 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") */ -- cgit