1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 12:06:38 +02:00

Remove some duplicate code from ns_set.

This commit is contained in:
Sadie Powell
2025-09-10 12:57:48 +01:00
parent d631885495
commit 390975e6c4
-12
View File
@@ -442,18 +442,6 @@ public:
if (noexpire.HasExt(na))
info.AddOption(_("No expiry"));
}
void OnUserModeSet(const MessageSource &setter, User *u, const Anope::string &mname) override
{
if (u->IsIdentified() && setter.GetUser() == u)
u->Account()->last_modes = u->GetModeList();
}
void OnUserModeUnset(const MessageSource &setter, User *u, const Anope::string &mname) override
{
if (u->IsIdentified() && setter.GetUser() == u)
u->Account()->last_modes = u->GetModeList();
}
};
MODULE_INIT(NSSet)