Page 1 of 1

logging login requests

Posted: 18 May 2008, 22:27
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

Posted: 19 May 2008, 01:41
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:

Posted: 19 May 2008, 06:42
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)