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
logging login requests
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.
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.
Yes you could handle the internal event, log your informations and then invoke the defaultLogin method which performs the default SFS login procedure.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?
Code: Select all
_server.instance.getSysHandler().defaultLogin(name, pass, zone, channel)