summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_sasl.cpp7
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");
+ }
}
}
};