On Fri, Jul 19, 2002 at 02:51:57PM +1200, Sir Vulcan wrote:
> ok ive added another usermode, and im making it so opers can set/unset the 
> mode on other users. But the thing is it seems set_user_mode() in s_user.c 
> uses sptr as the client to set the modes on, thus if i set /mode s +h it 
> would set the modes on me instead of s, now parv[1] contains the username 
> to set the modes on, in this case s. I want to set the value of sptr to the 
> value parv[1] (ie sptr = parv[1] (yes i know it dont work)) so it will 
> change the modes on the client i choose, s in this case

        sptr is a pointer to a client structure.

        parv[1] in this case is a string.  you'll have to go find_client
or similar ot make this work.

        --msa

Reply via email to