banning and kicking is not yet implemented internally in ape. but it is in work (as i can see from the source). so at the moment you could handle a banlist in your module. to kick the users from the channel, you have to write a wrapper for the left- function in javascript (add a apeuser_sm_left function in libape- spidermonkey.c) and "leave the user" manually from your module. i don't know if there will be a problem here if you kick the last user on the channel. maybe you also have to handle the removal of the channel. guess it's better to implement a kick function.
an alternative is to wait. i think banning and kicking will be implemented very soon. On 31 Dez. 2009, 16:15, cedric <[email protected]> wrote: > It's OK to prevent a user who is not allowed or banned to join a > channel thanks to this topic > :http://groups.google.com/group/ape-project/browse_thread/thread/3d02e... > > But if I have someone who is already on a channel and I want to stop > him receiving messages from that channel, I don't find any command to > ban him. Removing from channel.userslist does not seem enough. > > On 30 déc, 13:28, cedric <[email protected]> wrote: > > > I try to prevent a user to join a channel if he is not allowed (I have > > my own rules). What is the best way to do to refuse a user to join a > > channel ? -- 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/
