summaryrefslogtreecommitdiff
path: root/src/core/os_staff.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/os_staff.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/os_staff.c')
-rw-r--r--src/core/os_staff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/os_staff.c b/src/core/os_staff.c
index e5b378a6a..39828f520 100644
--- a/src/core/os_staff.c
+++ b/src/core/os_staff.c
@@ -37,7 +37,7 @@ class CommandOSStaff : public Command
/* We have to loop all users as some may be logged into an account but not a nick */
for (User *u2 = firstuser(); u2; u2 = nextuser())
{
- if (u2->nc && u2->nc == na->nc)
+ if (u2->Account() && u2->Account() == na->nc)
{
found = 1;
if (na->nick == u2->nick)