summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-15 19:46:13 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-15 19:46:13 +0000
commitba47c49a6c0f0c5c7fc84b6638dc1234e1589c71 (patch)
treed07321dbcf811f9b8cb4859055425b8bfb4163c0 /src/commands.cpp
parent03b51e9cb691848f9906e7dc8dca4894c60e5bcc (diff)
Added 'local users' vector
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2489 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 1a5eb81d0..258fb635c 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -83,6 +83,7 @@ extern whowas_hash whowas;
extern command_table cmdlist;
extern std::vector<userrec*> all_opers;
+extern std::vector<userrec*> local_users;
// This table references users by file descriptor.
// its an array to make it VERY fast, as all lookups are referenced
@@ -912,6 +913,11 @@ void handle_quit(char **parameters, int pcnt, userrec *user)
if (user->fd > -1)
{
SE->DelFd(user->fd);
+ if (find(local_users.begin(),local_users.end(),user) != local_users.end())
+ {
+ log(DEBUG,"Delete local user");
+ local_users.erase(find(local_users.begin(),local_users.end(),user));
+ }
user->CloseSocket();
}