Menu

How to get/detect forced LEAVE events ?

Heladito
2004-04-07
2012-09-06
  • Heladito

    Heladito - 2004-04-07

    Hi,

    I'd like to detect when a member receives a forced LEAVE message by other members.  In that case, the receiver will have to leave the group in any case.

    I managed to get the SUSPECT events through a Membershiplistener, but I don't see how to do the same for the LEAVE events.

    Is there also a simple way to test that ?

    Thanks in advance for ur help.

     
    • Bela Ban

      Bela Ban - 2004-04-08

      So I assume you're not interested in the viewAccepted(View) event, but in a shun event. You could either register as ChannelListener with a channel, and listen for channelShunned() callbacks, or receive all events from a channel, and simply handle the Event.SHUN event.

      Bela

       
      • Heladito

        Heladito - 2004-04-08

        Bela,

        thanks for your quick reply.  No, I am not interested in the viewAccepted event.  I just want an event that forces the member to leave the group... 

        I couldn't find Event.SHUN, however I found Event.EXIT.  Is it this type of Event that I should use ?

        What about the class ExitEvent ?

        Is there some documentation about these shun/exit events, because I couldn't find any ?

        Thanks in advance for your help.

         

Log in to post a comment.