diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-02-04 23:49:27 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-02-04 23:49:27 +0000 |
commit | 308070e01971b0cfaf77de20011f48ce4d6b5a1c (patch) | |
tree | 2bdfd84e35cf79eb20dc2a79ddd233789ca84fdf /src/core/ns_access.c | |
parent | 3d4cf39940144be19645a3a7cdecf95213b96f26 (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_access.c')
-rw-r--r-- | src/core/ns_access.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/ns_access.c b/src/core/ns_access.c index b46344475..60d4252e2 100644 --- a/src/core/ns_access.c +++ b/src/core/ns_access.c @@ -125,7 +125,7 @@ class CommandNSAccess : public Command const char *mask = params.size() > 1 ? params[1].c_str() : NULL; NickAlias *na; - if (cmd == "LIST" && u->nc->IsServicesOper() && mask && (na = findnick(params[1].c_str()))) + if (cmd == "LIST" && u->Account()->IsServicesOper() && mask && (na = findnick(params[1].c_str()))) return this->DoServAdminList(u, params, na->nc); if (mask && !strchr(mask, '@')) @@ -138,14 +138,14 @@ class CommandNSAccess : public Command else if (na->HasFlag(NS_FORBIDDEN)) notice_lang(Config.s_NickServ, u, NICK_X_FORBIDDEN, na->nick); */ - else if (u->nc->HasFlag(NI_SUSPENDED)) - notice_lang(Config.s_NickServ, u, NICK_X_SUSPENDED, u->nc->display); + else if (u->Account()->HasFlag(NI_SUSPENDED)) + notice_lang(Config.s_NickServ, u, NICK_X_SUSPENDED, u->Account()->display); else if (cmd == "ADD") - return this->DoAdd(u, u->nc, mask); + return this->DoAdd(u, u->Account(), mask); else if (cmd == "DEL") - return this->DoDel(u, u->nc, mask); + return this->DoDel(u, u->Account(), mask); else if (cmd == "LIST") - return this->DoList(u, u->nc, mask); + return this->DoList(u, u->Account(), mask); else this->OnSyntaxError(u, ""); return MOD_CONT; |