summaryrefslogtreecommitdiff
path: root/src/cmd_user.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-11 12:09:25 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-11 12:09:25 +0000
commit9826d2ee0a26234a4f5421ae686b0068f3f64c57 (patch)
treeef18b42f6219e1594509e7df415de462214ccb62 /src/cmd_user.cpp
parent7a8a69fb34fb9142b0c8943064f024e486c68a85 (diff)
Changed fd_ref_table from 65536 to more correct MAX_DESCRIPTORS
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2769 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_user.cpp')
-rw-r--r--src/cmd_user.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cmd_user.cpp b/src/cmd_user.cpp
index 3d1754af3..96042898f 100644
--- a/src/cmd_user.cpp
+++ b/src/cmd_user.cpp
@@ -60,14 +60,13 @@ extern chan_hash chanlist;
extern whowas_hash whowas;
extern std::vector<userrec*> all_opers;
extern std::vector<userrec*> local_users;
-extern userrec* fd_ref_table[65536];
+extern userrec* fd_ref_table[MAX_DESCRIPTORS];
void cmd_user::Handle (char **parameters, int pcnt, userrec *user)
{
- log(DEBUG,"Handling USER from cmd_user class!");
if (user->registered < 3)
{
- if (isident(parameters[0]) == 0) {
+ if (!isident(parameters[0])) {
// This kinda Sucks, According to the RFC thou, its either this,
// or "You have already registered" :p -- Craig
WriteServ(user->fd,"461 %s USER :Not enough parameters",user->nick);