1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 21:23:12 +02:00

Do not send unregistered notice to users who are logged in, even if their nick isn't registered

This commit is contained in:
Adam
2014-03-10 07:26:09 -04:00
parent 62885fa462
commit 860deb14ce
+1 -1
View File
@@ -370,7 +370,7 @@ class NickServCore : public Module, public NickServService
const NickAlias *na = NickAlias::Find(u->nick);
const Anope::string &unregistered_notice = Config->GetModule(this)->Get<const Anope::string>("unregistered_notice");
if (!Config->GetModule("nickserv")->Get<bool>("nonicknameownership") && !unregistered_notice.empty() && !na)
if (!Config->GetModule("nickserv")->Get<bool>("nonicknameownership") && !unregistered_notice.empty() && !na && !u->Account())
u->SendMessage(NickServ, unregistered_notice);
else if (na && !u->IsIdentified(true))
this->Validate(u);