Author Topic: Set User Description  (Read 2137 times)

0 Members and 1 Guest are viewing this topic.

Offline CHILLCODE?

  • Scripter
  • Member
  • ******
  • Posts: 31
  • Karma: +21/-0
Set User Description
« 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 ;).

PtokaX forum

Set User Description
« on: 06 January, 2007, 19:42:00 »

Offline CrazyGuy

  • Viking
  • ****
  • Posts: 506
  • Karma: +83/-20
    • ?????=-_The NightHawk_-=?????
Re: Set User Description
« Reply #1 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

Offline Thor

  • Scripter
  • Lord
  • ******
  • Posts: 290
  • Karma: +45/-5
    • Hungarian Direct Connect Site
Re: Set User Description
« Reply #2 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 ;)

Offline CHILLCODE?

  • Scripter
  • Member
  • ******
  • Posts: 31
  • Karma: +21/-0
Re: Set User Description
« Reply #3 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...

PtokaX forum

Re: Set User Description
« Reply #3 on: 07 January, 2007, 14:48:32 »