com.leafdigital.irc.api
Class CommandFilter

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

public class CommandFilter
extends java.lang.Object
implements MessageFilter

Filters user command messages based on the command


Field Summary
static FilterInfo info
          Scripting filter information.
 
Constructor Summary
CommandFilter(java.lang.String command)
           
 
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

CommandFilter

public CommandFilter(java.lang.String command)
Parameters:
command - Desired command (not case-sensitive)
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.