From 95840640cb374a0845c866bd1ad56a04dd833081 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 28 Jul 2006 12:00:25 +0000 Subject: Change all references to voodoo numbers (7, 3 etc) to the new bitwise constants for user->registered Change a lot of user->fd > -1 to use the IS_LOCAL() macro git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4569 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_quit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cmd_quit.cpp') diff --git a/src/cmd_quit.cpp b/src/cmd_quit.cpp index 5011d230e..dfa33e91c 100644 --- a/src/cmd_quit.cpp +++ b/src/cmd_quit.cpp @@ -52,7 +52,7 @@ void cmd_quit::Handle (const char** parameters, int pcnt, userrec *user) user_hash::iterator iter = clientlist.find(user->nick); char reason[MAXBUF]; - if (user->registered == 7) + if (user->registered == REG_ALL) { /* theres more to do here, but for now just close the socket */ if (pcnt == 1) @@ -109,7 +109,7 @@ void cmd_quit::Handle (const char** parameters, int pcnt, userrec *user) clientlist.erase(iter); } - if (user->registered == 7) { + if (user->registered == REG_ALL) { purge_empty_chans(user); } if (user->fd > -1) -- cgit v1.2.3