summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp
index cd3c6b50f..7f9a49049 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -301,7 +301,6 @@ void User::Identify(NickAlias *na)
}
this->Login(na->nc);
- IRCD->SendLogin(this);
FOREACH_MOD(OnNickIdentify, (this));
@@ -336,6 +335,8 @@ void User::Login(NickCore *core)
this->UpdateHost();
+ IRCD->SendLogin(this);
+
if (this->server->IsSynced())
Log(this, "account") << "is now identified as " << this->nc->display;
@@ -378,7 +379,7 @@ bool User::IsRecognized(bool check_secure) const
{
const NickAlias *na = NickAlias::Find(this->nick);
- if (!na || na->nc->HasExt("SECURE"))
+ if (!na || na->nc->HasExt("NS_SECURE"))
return false;
}