summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <adam@sigterm.info>2016-04-16 16:59:00 -0500
committerAdam <adam@sigterm.info>2016-04-16 16:59:00 -0500
commitc14ae99d324cf38536843326b2ac82ae2971bdd0 (patch)
tree4afcb662ec4413ccf3fd4f2ab0a35c0111e8f66b
parentcb0cda2f8d3413c0e22e66813e67a604589f19e5 (diff)
parent753b8dc989984f8bf39c59d57f93d7b318a07a0a (diff)
Merge pull request #163 from Zoddo/fix_sasl_reauth
Send new account name to the IRCd on SASL reauth
-rw-r--r--modules/m_sasl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/m_sasl.cpp b/modules/m_sasl.cpp
index 2e0410e7c..e1f55bcc9 100644
--- a/modules/m_sasl.cpp
+++ b/modules/m_sasl.cpp
@@ -226,10 +226,10 @@ class SASLService : public SASL::Service, public Timer
// If the user is already introduced then we log them in now.
// Otherwise, we send an SVSLOGIN to log them in later.
User *user = User::Find(session->uid);
- const NickAlias *na = NickAlias::Find(nc->display);
+ NickAlias *na = NickAlias::Find(nc->display);
if (user)
{
- user->Login(nc);
+ user->Identify(na);
}
else
{