summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_sasl.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/modules/m_sasl.cpp b/src/modules/m_sasl.cpp
index 0e07f276f..278058190 100644
--- a/src/modules/m_sasl.cpp
+++ b/src/modules/m_sasl.cpp
@@ -71,11 +71,23 @@ class ModuleSASL : public Module
virtual int OnUserRegister(User *user)
{
+ std::string* str = NULL;
+
if (user->GetExt("sasl"))
{
user->WriteServ("906 %s :SASL authentication aborted", user->nick);
user->Shrink("sasl");
}
+
+ if (user->GetExt("acountname", str))
+ {
+ std::deque<std::string> params;
+ params.push_back(user->uuid);
+ params.push_back("accountname");
+ params.push_back(*str);
+ Event e((char*)&params, this, "send_metadata");
+ e.Send(ServerInstance);
+ }
return 0;
}