From 63ecaa7059166007635f5dd19b93f2d478fbf1ce Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 30 Jul 2006 19:03:58 +0000 Subject: When m_ident isnt loaded, dont prepend ~ to idents git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4604 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_user.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cmd_user.cpp b/src/cmd_user.cpp index 67b7c9492..23139c13f 100644 --- a/src/cmd_user.cpp +++ b/src/cmd_user.cpp @@ -41,7 +41,7 @@ void cmd_user::Handle (const char** parameters, int pcnt, userrec *user) /* XXX - Should this IDENTMAX + 1 be IDENTMAX - 1? Ok, users.h has it defined as * char ident[IDENTMAX+2]; - WTF? */ - snprintf(user->ident, IDENTMAX+1, "~%s", parameters[0]); + strlcpy(user->ident, parameters[0], IDENTMAX); strlcpy(user->fullname,parameters[3],MAXGECOS); user->registered = (user->registered | REG_USER); } -- cgit v1.2.3