summaryrefslogtreecommitdiff
path: root/src/core/ns_saset.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_saset.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_saset.c')
-rw-r--r--src/core/ns_saset.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ns_saset.c b/src/core/ns_saset.c
index 3ae40baea..e7cc089ed 100644
--- a/src/core/ns_saset.c
+++ b/src/core/ns_saset.c
@@ -65,7 +65,7 @@ private:
int len = param.size();
- if (Config.NSSecureAdmins && u->nc != nc && nc->IsServicesOper())
+ if (Config.NSSecureAdmins && u->Account() != nc && nc->IsServicesOper())
{
notice_lang(Config.s_NickServ, u, ACCESS_DENIED);
return MOD_CONT;
@@ -128,7 +128,7 @@ private:
notice_lang(Config.s_NickServ, u, NICK_SASET_EMAIL_UNSET_IMPOSSIBLE);
return MOD_CONT;
}
- else if (Config.NSSecureAdmins && u->nc != nc && nc->IsServicesOper())
+ else if (Config.NSSecureAdmins && u->Account() != nc && nc->IsServicesOper())
{
notice_lang(Config.s_NickServ, u, ACCESS_DENIED);
return MOD_CONT;