summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-06-27 17:59:48 -0400
committerAdam <Adam@anope.org>2010-06-27 17:59:48 -0400
commitccc92376beaab22558543cd3ce60782203372004 (patch)
treeae93e526be0273469e11f47bf67c2020e9e2ae20 /src/users.cpp
parent8cf8faf5297ef640cb4437d01dbf57a985c235f9 (diff)
Log out users when they log in to another account.
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 9d94f7c0f..cc97152a1 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -408,6 +408,7 @@ void User::AutoID(const std::string &account)
*/
void User::Login(NickCore *core)
{
+ this->Logout();
nc = core;
core->Users.push_back(this);
}