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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user