diff options
Diffstat (limited to 'src/modules.cpp')
-rw-r--r-- | src/modules.cpp | 15 |
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; } |