How to traversed all users?

For the old 4.x series

Moderators: Gottem, Supporters

Post Reply
taobataoma
Posts: 14
Joined: Mon Dec 21, 2015 6:43 am

How to traversed all users?

Post by taobataoma » Fri Dec 25, 2015 12:22 pm

hi,

i want to write my module, and how to traversed the all users?

for(?????){
acptr=??
}

thx~!

dboyz
Posts: 68
Joined: Tue Jun 14, 2011 6:36 am

Re: How to traversed all users?

Post by dboyz » Sat Dec 26, 2015 8:08 am

Sorry, can you describe your module a bit more?

Syzop
UnrealIRCd head coder
Posts: 1935
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: How to traversed all users?

Post by Syzop » Sat Dec 26, 2015 2:42 pm

You could take a look at https://www.vulnscan.org/UnrealIRCd/mod ... est.tar.gz

Code: Select all

    list_for_each_entry(acptr, &client_list, client_node)
    {
        /* List only real IRC Operators */
        if (IsULine(acptr) || !IsPerson(acptr) || !IsOper(acptr))
            continue;
....
(on UnrealIRCd 4)

taobataoma
Posts: 14
Joined: Mon Dec 21, 2015 6:43 am

Re: How to traversed all users?

Post by taobataoma » Tue Dec 29, 2015 3:18 am

thx, very fine.

Post Reply