summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}