mirror of
https://github.com/anope/anope.git
synced 2026-07-01 21:26:38 +02:00
Avoid NickAlias lookups by storing a pointer in the NickCore.
This commit is contained in:
@@ -27,7 +27,7 @@ public:
|
||||
|
||||
const NickAlias *na = NickAlias::Find(u->nick);
|
||||
if (!na || na->nc != u->Account() || !na->HasVHost())
|
||||
na = NickAlias::Find(u->Account()->display);
|
||||
na = u->AccountNick();
|
||||
|
||||
if (!na || !na->HasVHost())
|
||||
source.Reply(HOST_NOT_ASSIGNED);
|
||||
|
||||
Reference in New Issue
Block a user