summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-30 19:03:58 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-30 19:03:58 +0000
commit63ecaa7059166007635f5dd19b93f2d478fbf1ce (patch)
tree4f456acbd992040e7f73a686498d4ca98dce0aba /src
parent17a296ff58afcda0d9a26e2313efef4678bbcb44 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/cmd_user.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}