1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 07:36:39 +02:00

Move enforcer checks on nick and logout to nickserv.cpp

This commit is contained in:
Adam
2013-01-03 13:20:10 -05:00
parent 098157dca8
commit 23e303aaa2
5 changed files with 23 additions and 16 deletions
+2 -7
View File
@@ -114,9 +114,6 @@ void User::ChangeNick(const Anope::string &newnick, time_t ts)
if (na)
on_access = na->nc->IsOnAccess(this);
if (old_na)
old_na->OnCancel(this);
if (na && na->nc == this->Account())
{
na->last_seen = Anope::CurTime;
@@ -237,7 +234,7 @@ User::~User()
--this->server->users;
}
FOREACH_MOD(I_OnUserLogoff, OnUserLogoff(this));
FOREACH_MOD(I_OnPreUserLogoff, OnPreUserLogoff(this));
ModeManager::StackerDel(this);
this->Logout();
@@ -252,9 +249,7 @@ User::~User()
if (!this->uid.empty())
UserListByUID.erase(this->uid);
NickAlias *na = NickAlias::Find(this->nick);
if (na)
na->OnCancel(this);
FOREACH_MOD(I_OnPostUserLogoff, OnPostUserLogoff(this));
}
void User::SendMessage(const BotInfo *source, const char *fmt, ...)