-#if HAVE_THREADS
-void whohandler_end_of_recv(struct ClientSocket *client) {
- SYNCHRONIZE(whohandler_sync);
- unsigned long tid = syscall(SYS_gettid);
- struct WHOQueueEntry *entry;
- for(entry = client->whoqueue_first; entry; entry = entry->next) {
- if(entry->lock_tid == tid) {
- entry->lock_tid = 0;
- DESYNCHRONIZE(entry->lock_mutex);
- }
- }
- DESYNCHRONIZE(whohandler_sync);
-}
-#endif
-
-void get_userlist(struct ChanNode *chan, userlist_callback_t callback, void *data) {
+void get_userlist(struct ChanNode *chan, int module_id, userlist_callback_t callback, void *data) {