com.leafdigital.irc.api
Class NickFilter

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

public class NickFilter
extends java.lang.Object
implements MessageFilter

Filters messages based on their source user nickname


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

NickFilter

public NickFilter(java.lang.String nick)
Parameters:
nick - Nickname (not case-sensitive) from which messages are accepted; may include wildcard *
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.