com.zerjio.JIRC
Interface PARTListener


public interface PARTListener

The basic interface for a PARTMessage listener.


Method Summary
 boolean listensToPART(java.lang.String channelName)
          Should return true if it listens to the particular channel and false otherwise.
 void PARTReceived(PARTMessage msg)
          This method should take care about an PARTMessage that has been recieved.
 

Method Detail

PARTReceived

public void PARTReceived(PARTMessage msg)
This method should take care about an PARTMessage that has been recieved.

It should mark the message as used using IRCMessage.markAsUsed() in case that the information on the message has been used in any form. It is also responsible of using IRCMessage.mustBeDiscarded() if no other listener should get noticed about this message.

Parameters:
msg - The PARTMessage that has been received.
See Also:
markAsUsed, mustBeDiscarded

listensToPART

public boolean listensToPART(java.lang.String channelName)
Should return true if it listens to the particular channel and false otherwise. If it always returns true it will listen to any PART message. If it always returns false it will not listen to any PART message.

Parameters:
channelName - The name of the channel that must be tested.
Returns:
true if the channelName is being listened. false if the channelName is not being listened.