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

When assigning a new display nick use the oldest not the first.

This commit is contained in:
Sadie Powell
2025-06-20 19:19:12 +01:00
parent a4abd27ffd
commit 21c8164539
3 changed files with 17 additions and 7 deletions
+4 -4
View File
@@ -69,8 +69,8 @@ NickAlias::~NickAlias()
else
{
/* Display updating stuff */
if (this->nick.equals_ci(this->nc->display))
this->nc->SetDisplay(this->nc->aliases->front());
if (this->nc->na == this)
this->nc->SetDisplay(nullptr);
}
}
@@ -200,8 +200,8 @@ Serializable *NickAlias::Type::Unserialize(Serializable *obj, Serialize::Data &d
if (na->nc->aliases->empty())
delete na->nc;
else if (na->nick.equals_ci(na->nc->display))
na->nc->SetDisplay(na->nc->aliases->front());
if (na->nc->na == na)
na->nc->SetDisplay(nullptr);
na->nc = core;
core->aliases->push_back(na);