diff options
author | Adam <Adam@anope.org> | 2017-01-22 16:00:06 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2017-01-22 16:00:06 -0500 |
commit | beac29b1d00235065090aa03b177e8671100bbc2 (patch) | |
tree | 9b04926c601dfb9be03b15a9a98ad9edc91104ac /include/modules/sasl.h | |
parent | 35d6437d45101e45a52e90701210ddd6e04a322a (diff) |
m_sasl: don't allow logging into unconfirmed accounts
Diffstat (limited to 'include/modules/sasl.h')
-rw-r--r-- | include/modules/sasl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/modules/sasl.h b/include/modules/sasl.h index e2c832c7b..249a4c3b0 100644 --- a/include/modules/sasl.h +++ b/include/modules/sasl.h @@ -88,7 +88,7 @@ namespace SASL return; NickAlias *na = NickAlias::Find(GetAccount()); - if (!na || na->nc->HasExt("NS_SUSPENDED")) + if (!na || na->nc->HasExt("NS_SUSPENDED") || na->nc->HasExt("UNCONFIRMED")) return OnFail(); unsigned int maxlogins = Config->GetModule("ns_identify")->Get<unsigned int>("maxlogins"); @@ -126,6 +126,8 @@ namespace SASL accountstatus = "nonexistent "; else if (na->nc->HasExt("NS_SUSPENDED")) accountstatus = "suspended "; + else if (na->nc->HasExt("UNCONFIRMED")) + accountstatus = "unconfirmed "; Anope::string user = "A user"; if (!hostname.empty() && !ip.empty()) |