summaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-27 11:50:16 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-27 11:50:16 +0000
commit978e8de69f1f5303bf9d9b24f764d890d73c927f (patch)
tree1c584849a6d4d0a77911f1cbd3fda68a01f361e8 /src/modules.cpp
parenteb04595b0b184f0593ca85af04f4f074cd2f69d2 (diff)
Optimized stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1212 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 2f45ad0d0..fd0f39503 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -453,18 +453,11 @@ chanuserlist Server::GetUsers(chanrec* chan)
{
chanuserlist userl;
userl.clear();
- for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++)
+ std::vector<char*> *list = chan->GetUsers();
+ for (std::vector<char*>::iterator i = list->begin(); i != list->end(); i++)
{
- if (i->second)
- {
- if (has_channel(i->second,chan))
- {
- if (isnick(i->second->nick))
- {
- userl.push_back(i->second);
- }
- }
- }
+ char* o = *i;
+ userl.push_back((userrec*)o);
}
return userl;
}