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

Stop showing the last real name in the nick information output.

This isn't really used anymore and a lot of clients just set it to
a static string so it doesn't make sense to show it.
This commit is contained in:
Sadie Powell
2025-09-12 15:32:40 +01:00
parent 51916a50d2
commit 535ff9b839
8 changed files with 1 additions and 27 deletions
-1
View File
@@ -48,7 +48,6 @@ private:
public:
Anope::string nick;
Anope::string last_quit;
Anope::string last_realname;
/* Last cloaked user@host this nick was seen using. */
Anope::string last_userhost;
/* Last real user@host this nick was seen using. */
-1
View File
@@ -107,7 +107,6 @@ public:
if (na == NULL)
{
na = new NickAlias(ii->req->GetAccount(), new NickCore(ii->req->GetAccount()));
na->last_realname = ii->user ? ii->user->realname : ii->req->GetAccount();
FOREACH_MOD(OnNickRegister, (ii->user, na, ii->req->GetPassword()));
BotInfo *NickServ = Config->GetClient("NickServ");
if (ii->user && NickServ)
-8
View File
@@ -56,15 +56,7 @@ public:
if (u != NULL)
{
na->last_userhost = u->GetIdent() + "@" + u->GetDisplayedHost();
na->last_realname = u->realname;
}
else
{
na->last_realname = source.GetNick();
}
if (u != NULL)
{
IRCD->SendLogin(u, na); // protocol modules prevent this on unconfirmed accounts
u->Login(target->nc);
FOREACH_MOD(OnNickGroup, (u, target));
+1 -1
View File
@@ -78,7 +78,7 @@ public:
if (has_auspex || na->nc == source.GetAccount())
show_hidden = true;
source.Reply(_("%s is %s"), na->nick.c_str(), na->last_realname.c_str());
source.Reply(_("Information about nick \002%s\002:"), na->nick.c_str());
if (na->nc->HasExt("UNCONFIRMED"))
source.Reply(_("%s is an unconfirmed nickname."), na->nick.c_str());
-5
View File
@@ -140,12 +140,7 @@ public:
nc->pass = encpass;
if (u)
{
na->last_userhost = u->GetIdent() + "@" + u->GetDisplayedHost();
na->last_realname = u->realname;
}
else
na->last_realname = source.GetNick();
Log(LOG_COMMAND, source, this) << "to register " << na->nick << " (email: " << (!na->nc->email.empty() ? na->nc->email : "none") << ")";
-3
View File
@@ -27,10 +27,7 @@ public:
NickAlias *na = NickAlias::Find(u->nick);
if (na && na->nc == source.GetAccount())
{
na->last_realname = u->realname;
na->last_seen = Anope::CurTime;
}
FOREACH_MOD(OnNickUpdate, (u));
-2
View File
@@ -155,7 +155,6 @@ void NickAlias::Type::Serialize(Serializable *obj, Serialize::Data &data) const
const auto *na = static_cast<const NickAlias *>(obj);
data.Store("nick", na->nick);
data.Store("last_quit", na->last_quit);
data.Store("last_realname", na->last_realname);
data.Store("last_userhost", na->last_userhost);
data.Store("last_userhost_real", na->last_userhost_real);
data.Store("registered", na->registered);
@@ -208,7 +207,6 @@ Serializable *NickAlias::Type::Unserialize(Serializable *obj, Serialize::Data &d
}
data["last_quit"] >> na->last_quit;
data["last_realname"] >> na->last_realname;
data["last_userhost"] >> na->last_userhost;
data["last_userhost_real"] >> na->last_userhost_real;
data["registered"] >> na->registered;
-6
View File
@@ -278,9 +278,6 @@ void User::SetRealname(const Anope::string &srealname)
this->realname = srealname;
NickAlias *na = NickAlias::Find(this->nick);
if (na && this->IsIdentified(true))
na->last_realname = srealname;
Log(this, "realname") << "changed realname to " << srealname;
}
@@ -366,7 +363,6 @@ void User::Identify(NickAlias *na)
{
na->last_userhost = this->GetIdent() + "@" + this->GetDisplayedHost();
na->last_userhost_real = this->GetIdent() + "@" + this->host;
na->last_realname = this->realname;
na->last_seen = Anope::CurTime;
}
@@ -524,8 +520,6 @@ void User::UpdateHost()
{
na->last_userhost = this->GetIdent() + "@" + this->GetDisplayedHost();
na->last_userhost_real = this->GetIdent() + "@" + this->host;
// This is called on signon, and if users are introduced with an account it won't update
na->last_realname = this->realname;
}
}