diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-28 12:00:25 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-28 12:00:25 +0000 |
commit | 95840640cb374a0845c866bd1ad56a04dd833081 (patch) | |
tree | 17fb64980c11b26d33967f58064f3579d2a1ca4d /src/cmd_quit.cpp | |
parent | 9296aee7bc95c0fb2a0d00f76b908eba99e730af (diff) |
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
Diffstat (limited to 'src/cmd_quit.cpp')
-rw-r--r-- | src/cmd_quit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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) |