From d54fd9b1e6b31f69332a9241b5f17330c0ad61e0 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 30 Aug 2006 09:03:03 +0000 Subject: Wahhhhhhhhhhhh bwahahaha. Mass commit to tidy up tons of messy include lists git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5080 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_user.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/cmd_user.cpp') diff --git a/src/cmd_user.cpp b/src/cmd_user.cpp index 66a275c72..12a29f3bd 100644 --- a/src/cmd_user.cpp +++ b/src/cmd_user.cpp @@ -14,15 +14,10 @@ * --------------------------------------------------- */ -#include "inspircd_config.h" #include "configreader.h" #include "users.h" -#include "commands.h" - #include "commands/cmd_user.h" - - void cmd_user::Handle (const char** parameters, int pcnt, userrec *user) { if (user->registered < REG_NICKUSER) @@ -34,8 +29,9 @@ void cmd_user::Handle (const char** parameters, int pcnt, userrec *user) } else { /* We're not checking ident, but I'm not sure I like the idea of '~' prefixing.. */ - /* XXX - Should this IDENTMAX + 1 be IDENTMAX - 1? Ok, users.h has it defined as - * char ident[IDENTMAX+2]; - WTF? + /* XXX - The ident field is IDENTMAX+2 in size to account for +1 for the optional + * ~ character, and +1 for null termination, therefore we can safely use up to + * IDENTMAX here. */ strlcpy(user->ident, parameters[0], IDENTMAX); strlcpy(user->fullname,parameters[3],MAXGECOS); -- cgit v1.3.1-10-gc9f91