summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-01-03 13:20:10 -0500
committerAdam <Adam@anope.org>2013-01-03 13:20:10 -0500
commit23e303aaa2ffa3d66990e688b76380f403171f1e (patch)
treebf833f37ab80b20cd2c745175e83dd18faac1cd8 /src/users.cpp
parent098157dca8a4aecc18294cbc31cbe5ee95b35a94 (diff)
Move enforcer checks on nick and logout to nickserv.cpp
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 1f70b47b4..6293d6b0c 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -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, ...)