summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-03-31 14:31:45 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-03-31 14:31:45 +0000
commit2c7278c7e5ee0517be2b29a52bf717966c3a7dc0 (patch)
tree723a0edbe576a9aeafa031ffaf4e9be2c8c57c33 /src
parente9eb37bc2d15eb06ed4e1f7c12c7220364714189 (diff)
- Forward-port -r1792 [Added SVSHOST command handler which allows services to change the
hostname of a specific user] git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1795 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'src')
-rw-r--r--src/s_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/s_user.c b/src/s_user.c
index b2c7911..ddcfa83 100644
--- a/src/s_user.c
+++ b/src/s_user.c
@@ -658,7 +658,7 @@ valid_hostname(const char *hostname)
if (!IsHostChar(*p))
return 0;
- return 1;
+ return p - hostname <= HOSTLEN;
}
/* valid_username()