Page 1 of 1

How to traversed all users?

Posted: Fri Dec 25, 2015 12:22 pm
by taobataoma
hi,

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

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

thx~!

Re: How to traversed all users?

Posted: Sat Dec 26, 2015 8:08 am
by dboyz
Sorry, can you describe your module a bit more?

Re: How to traversed all users?

Posted: Sat Dec 26, 2015 2:42 pm
by Syzop
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)

Re: How to traversed all users?

Posted: Tue Dec 29, 2015 3:18 am
by taobataoma
thx, very fine.