mirror of
https://github.com/anope/anope.git
synced 2026-06-26 21:16:39 +02:00
Avoid NickAlias lookups by storing a pointer in the NickCore.
This commit is contained in:
@@ -31,6 +31,8 @@ NickAlias::NickAlias(const Anope::string &nickname, NickCore *nickcore)
|
||||
throw CoreException("Empty nickcore passed to NickAlias constructor");
|
||||
|
||||
nickcore->aliases->push_back(this);
|
||||
if (this->nick.equals_ci(nickcore->display))
|
||||
nickcore->na = this;
|
||||
|
||||
if (!NickAliasList->insert_or_assign(this->nick, this).second)
|
||||
Log(LOG_DEBUG) << "Duplicate nick " << this->nick << " in NickAlias table";
|
||||
|
||||
Reference in New Issue
Block a user