diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-30 09:03:03 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-30 09:03:03 +0000 |
commit | d54fd9b1e6b31f69332a9241b5f17330c0ad61e0 (patch) | |
tree | 4f71ce0d23547f7e634f3e8a45982db201c8f8b1 /src/cmd_user.cpp | |
parent | 88315e8f8f0128325e17fce1fa942cc02c6e0e38 (diff) |
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
Diffstat (limited to 'src/cmd_user.cpp')
-rw-r--r-- | src/cmd_user.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
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); |