> > > is there anyway i can put the value of parv[1] into sptr. parv[1] in >this > > case contains a nickname. ive tried: > > > > sptr = parv[1]; > > > > but ircu segfaults when it gets to processing it, i also get a warning >when > > i compile. (my c knowledge isnt 2 good) > >Of course it won't work. "What are you really trying to do?"
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 hmmm hopes that makes sense >-- >Kevin L. Mitchell <[EMAIL PROTECTED]> _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com