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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user