You can return 0 from the hook, and that will send back a BAD_PARAMS raw. You can send a more verbose response by using infos.sendResponse().
Look at http://www.ape-project.org/wiki/index.php/How_to_create_a_server_Module#Send_a_custom_raw On Thu, Nov 18, 2010 at 11:19 AM, Paul <[email protected]> wrote: > I'm running the current version of ape from git source and am trying > to verify if a user exists within our database, if they are not, then > to kick them off the server. I tried adding the user.quit(); command > within Ape.registerHookCmd("connect".... but because the user doesn't > have a pubid I am unable to send them a message, have also tried > placing it in Ape.addEvent("adduser", function(user).... but cant run > the quit command in there. How can I kick the user off the server > after warning them that they have an invalid id? > > -- > You received this message because you are subscribed to the Google > Groups "APE Project" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<ape-project%[email protected]> > For more options, visit this group at > http://groups.google.com/group/ape-project?hl=en > --- > APE Project (Ajax Push Engine) > Official website : http://www.ape-project.org/ > Git Hub : http://github.com/APE-Project/ > -- You received this message because you are subscribed to the Google Groups "APE Project" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ape-project?hl=en --- APE Project (Ajax Push Engine) Official website : http://www.ape-project.org/ Git Hub : http://github.com/APE-Project/
