com.leafdigital.irc.api
Class NumericFilter

java.lang.Object
  extended by com.leafdigital.irc.api.NumericFilter
All Implemented Interfaces:
MessageFilter

public class NumericFilter
extends java.lang.Object
implements MessageFilter

Filters messages based on their server numeric


Field Summary
static FilterInfo info
          Scripting filter information.
 
Constructor Summary
NumericFilter(int numeric)
           
 
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

NumericFilter

public NumericFilter(int numeric)
Parameters:
numeric - Numeric of interest
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.