summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-06-27 17:59:48 -0400
committerAdam <Adam@anope.org>2010-06-27 18:00:40 -0400
commit77ec1f2fa774ac213638d2e317c3d731b42f12ef (patch)
tree6532216ec94096a58d4e5dfe2ce7eba78d799f6c
parent2979a0e9759eef695141386208a46342aaf23cdb (diff)
Log out users when they log in to another account.
-rw-r--r--src/users.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/users.c b/src/users.c
index 6b3625dfe..2c00a3480 100644
--- a/src/users.c
+++ b/src/users.c
@@ -452,6 +452,7 @@ void User::AutoID(const std::string &account)
*/
void User::Login(NickCore *core)
{
+ this->Logout();
nc = core;
core->Users.push_back(this);
}