irc
Class NullCTCPFilter

java.lang.Object
  |
  +--irc.NullCTCPFilter
All Implemented Interfaces:
CTCPFilter

public class NullCTCPFilter
extends java.lang.Object
implements CTCPFilter

A null CTCPFilter. This filter does nothing.


Constructor Summary
NullCTCPFilter()
          Create a new NullCTCPFilter.
 
Method Summary
 void action(Server s, java.lang.String destination, java.lang.String msg)
          Send an action on the given destination.
 void chat(Server s, java.lang.String nick)
          Send a DCCChat request on the given nick.
 void CTCPReply(java.lang.String nick, Source source, java.lang.String msg)
          Notify this Filter the source has received a CTCP reply.
 void genericSend(Server s, java.lang.String nick, java.lang.String message)
          Send a generic CTCP message to the given nick.
 void perform(java.lang.String nick, Source source, java.lang.String msg)
          Notify this filter the given source has received a CTCP message that should be processed.
 void ping(Server s, java.lang.String nick)
          Send a PING request on the given nick.
 void sendFile(Server s, java.lang.String nick, java.lang.String file)
          Send a DCC file send request on the given nick.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullCTCPFilter

public NullCTCPFilter()
Create a new NullCTCPFilter.

Method Detail

perform

public void perform(java.lang.String nick,
                    Source source,
                    java.lang.String msg)
Description copied from interface: CTCPFilter
Notify this filter the given source has received a CTCP message that should be processed.

Specified by:
perform in interface CTCPFilter
Parameters:
nick - the sender nickname.
source - the source.
msg - the message to be processed.

action

public void action(Server s,
                   java.lang.String destination,
                   java.lang.String msg)
Description copied from interface: CTCPFilter
Send an action on the given destination.

Specified by:
action in interface CTCPFilter
Parameters:
s - the server where to send the action.
destination - the destination, channel name or nick name.
msg - the message to send.

ping

public void ping(Server s,
                 java.lang.String nick)
Description copied from interface: CTCPFilter
Send a PING request on the given nick.

Specified by:
ping in interface CTCPFilter
Parameters:
s - the server.
nick - the nick.

chat

public void chat(Server s,
                 java.lang.String nick)
Description copied from interface: CTCPFilter
Send a DCCChat request on the given nick.

Specified by:
chat in interface CTCPFilter
Parameters:
s - the server.
nick - the nick.

sendFile

public void sendFile(Server s,
                     java.lang.String nick,
                     java.lang.String file)
Description copied from interface: CTCPFilter
Send a DCC file send request on the given nick.

Specified by:
sendFile in interface CTCPFilter
Parameters:
s - the server.
nick - the nick.
file - the file to send.

genericSend

public void genericSend(Server s,
                        java.lang.String nick,
                        java.lang.String message)
Description copied from interface: CTCPFilter
Send a generic CTCP message to the given nick.

Specified by:
genericSend in interface CTCPFilter
Parameters:
s - the server.
nick - the nick.
message - the message to send.

CTCPReply

public void CTCPReply(java.lang.String nick,
                      Source source,
                      java.lang.String msg)
Description copied from interface: CTCPFilter
Notify this Filter the source has received a CTCP reply.

Specified by:
CTCPReply in interface CTCPFilter
Parameters:
nick - the replier nick.
source - the source.
msg - the reply message.