com.leafdigital.irc.api
Class ServerFilter

java.lang.Object
  extended by com.leafdigital.irc.api.ServerFilter
All Implemented Interfaces:
MessageFilter
Direct Known Subclasses:
ChanAndServerFilter, NickAndServerFilter

public class ServerFilter
extends java.lang.Object
implements MessageFilter

Filters messages based on their source server


Field Summary
static FilterInfo info
          Scripting filter information.
 
Constructor Summary
ServerFilter(Server s)
           
 
Method Summary
 boolean accept(Msg m)
          Simple version of message filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

info

public static FilterInfo info
Scripting filter information.

Constructor Detail

ServerFilter

public ServerFilter(Server s)
Parameters:
s - Filter accepts all messages from this server
Method Detail

accept

public boolean accept(Msg m)
Description copied from interface: MessageFilter
Simple version of message filter.

Specified by:
accept in interface MessageFilter
Parameters:
m - Message to consider
Returns:
True if message is accepted


Copyright © 2011 Samuel Marshall. All rights reserved.