diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-03-21 20:28:11 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-03-21 20:28:11 +0000 |
commit | 5c8964c3557eae90a172e029b6e30d73157ef1c7 (patch) | |
tree | 9a82edc28ba9bab6fa7316261be26e1489f5ef18 /src/modules/m_sasl.cpp | |
parent | 92bf908bca5a6febe16a49405983ce9945a76b90 (diff) |
Don't send 'sasl successful' numeric on re-identifications after registration
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9156 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_sasl.cpp')
-rw-r--r-- | src/modules/m_sasl.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/modules/m_sasl.cpp b/src/modules/m_sasl.cpp index 0bbe76838..049af329b 100644 --- a/src/modules/m_sasl.cpp +++ b/src/modules/m_sasl.cpp @@ -101,7 +101,12 @@ class ModuleSASL : public Module else if (ev->GetEventID() == "account_login") { AccountData* ac = (AccountData*)ev->GetData(); - ac->user->WriteServ("903 %s :SASL authentication successful", ac->user->nick); + + if (ac->user->GetExt("sasl")) + { + ac->user->WriteServ("903 %s :SASL authentication successful", ac->user->nick); + ac->user->Shrink("sasl"); + } } } }; |