PtokaX forum

PtokaX => Feature Proposals => Topic started by: CHILLCODE? on 06 January, 2007, 19:42:00

Title: Set User Description
Post by: CHILLCODE? on 06 January, 2007, 19:42:00
I heared now from many sources that there is need for changing the User Description Tag,
Like user.setDescription( newdescription )
many scripts till now only update the MyInfo tag by sending it again, what kinda sucks...
it could also be added as a return value in UserConnected since at that point ptokax has not sent the MyInfo to the other users,
but the user function would give more versatility.
One could then make many scripts a bit more efficient, and one could add some nice functions to GeoIP, although that would also be
quite faster if it was added to the Hubsoft, but I'm still happy with the perfromance in LUA ;).
Title: Re: Set User Description
Post by: CrazyGuy on 06 January, 2007, 20:20:19
As all users resend their MyINFO after a set period of time (and most clients even twice on login), you'll have to "edit" it again as well.
So for PtokaX, MyINFOArrival would be the best place to do this.
1 could suggest a "if script return 1, hub don't process data" for that procedure though
Title: Re: Set User Description
Post by: Thor on 07 January, 2007, 00:40:26
And, by the way, PPK mentioned a month ago, the MyINFO will be editable soon. I don't know when, but I think it's still on the todo list ;)
Title: Re: Set User Description
Post by: CHILLCODE? on 07 January, 2007, 14:48:32
Yup a block for $MyINFO does seem good, then you can chose yourself what to do with it,
I mean you can fuck it up anyways by sending a wrong second one, so it wouldn't make any difference.

The best in performance I would think would be beeing able to add a string infront of the regular user description,
then ptokax can update it all by itsself when getting new MyINFO's but less versatile of course, but enough for my
things.

sure there is no need its certainly just a request, I do need to have lunch now...