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_release.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_release.c')
-rw-r--r-- | src/core/ns_release.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ns_release.c b/src/core/ns_release.c index 4424d7864..7ec6f85ee 100644 --- a/src/core/ns_release.c +++ b/src/core/ns_release.c @@ -57,7 +57,7 @@ class CommandNSRelease : public Command } else { - if (u->nc == na->nc || (!(na->nc->HasFlag(NI_SECURE)) && is_on_access(u, na->nc))) + if (u->Account() == na->nc || (!(na->nc->HasFlag(NI_SECURE)) && is_on_access(u, na->nc))) { release(na, 0); notice_lang(Config.s_NickServ, u, NICK_RELEASED); @@ -73,7 +73,7 @@ class CommandNSRelease : public Command char relstr[192]; /* Convert Config.NSReleaseTimeout seconds to string format */ - duration(u->nc, relstr, sizeof(relstr), Config.NSReleaseTimeout); + duration(u->Account(), relstr, sizeof(relstr), Config.NSReleaseTimeout); notice_help(Config.s_NickServ, u, NICK_HELP_RELEASE, relstr); //do_help_limited(Config.s_NickServ, u, this); |