logging login requests

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

Post Reply
cenicol
Posts: 14
Joined: 19 Apr 2008, 15:38
Contact:

logging login requests

Post by cenicol »

I really don't want to have a custom login procedure. I just need to log the login requests. Is there a way I can call the existing login code from the internal event handler instead of having to reimplement exactly the same code?

/carl
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Post by BigFIsh »

I don't think it is possible to call the existing login code from your interval event handler...

But I don't understand why you need to do this, why would you want to call the existing login code? It doesn't do much..

_server.loginUser(name, password, channel) - this logins a user to the server

where name, password and channel are recieved from evt["nick"], evt["pass"] and evt["chan"] upon user login request.

Custom login code is very useful for many reasons - i would love to go through them but I don't think this text box can handle such amount of information. :wink:
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

I really don't want to have a custom login procedure. I just need to log the login requests. Is there a way I can call the existing login code from the internal event handler instead of having to reimplement exactly the same code?
Yes you could handle the internal event, log your informations and then invoke the defaultLogin method which performs the default SFS login procedure.

Code: Select all

_server.instance.getSysHandler().defaultLogin(name, pass, zone, channel)
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply