summaryrefslogtreecommitdiff
path: root/src/core/ns_resetpass.c
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-02-04 23:49:27 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-02-04 23:49:27 +0000
commit308070e01971b0cfaf77de20011f48ce4d6b5a1c (patch)
tree2bdfd84e35cf79eb20dc2a79ddd233789ca84fdf /src/core/ns_resetpass.c
parent3d4cf39940144be19645a3a7cdecf95213b96f26 (diff)
We now store a list of users using a NickCore in the NickCore, this prevents having to loop every user all the time to find them
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2780 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/ns_resetpass.c')
-rw-r--r--src/core/ns_resetpass.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/ns_resetpass.c b/src/core/ns_resetpass.c
index fe39341e9..258b8c4b5 100644
--- a/src/core/ns_resetpass.c
+++ b/src/core/ns_resetpass.c
@@ -26,7 +26,7 @@ class CommandNSResetPass : public Command
{
NickAlias *na;
- if (Config.RestrictMail && !u->nc->HasCommand("nickserv/resetpass"))
+ if (Config.RestrictMail && !u->Account()->HasCommand("nickserv/resetpass"))
notice_lang(Config.s_NickServ, u, ACCESS_DENIED);
if (!(na = findnick(params[0].c_str())))
notice_lang(Config.s_NickServ, u, NICK_X_NOT_REGISTERED, params[0].c_str());
@@ -139,8 +139,8 @@ class NSResetPass : public Module
delete [] na->last_realname;
na->last_realname = sstrdup(u->realname);
na->last_seen = time(NULL);
- u->nc = na->nc;
- ircdproto->SendAccountLogin(u, u->nc);
+ u->Login(na->nc);
+ ircdproto->SendAccountLogin(u, u->Account());
ircdproto->SetAutoIdentificationToken(u);
FOREACH_MOD(I_OnNickIdentify, OnNickIdentify(u));