Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jackbot
Class UtilityIRCClient  view UtilityIRCClient download UtilityIRCClient.java

java.lang.Object
  extended byjackbot.IRCClient
      extended byjackbot.FloodControlIRCClient
          extended byjackbot.UtilityIRCClient
Direct Known Subclasses:
EventIRCClient

public class UtilityIRCClient
extends FloodControlIRCClient

Provides some helpful IRC client methods to subclasses.

Since:
JackBot v1.0
Version:
$Revision: 1.2 $ $Date: 2002/09/23 05:22:20 $

Nested Class Summary
 
Nested classes inherited from class jackbot.FloodControlIRCClient
 
Field Summary
 
Fields inherited from class jackbot.FloodControlIRCClient
 
Fields inherited from class jackbot.IRCClient
DEFAULT_SOCKET_TIMEOUT, MINIMUM_SOCKET_RECEIVE_BUFFER_SIZE
 
Constructor Summary
UtilityIRCClient(java.lang.String name, java.lang.String desc)
          Constructs a UtilityIRCClient object.
 
Method Summary
 void ircNotice(java.lang.String target, java.lang.String msg)
          Sends a NOTICE message to the server.
 void ircRespond(java.lang.String sender, java.lang.String target, java.lang.String msg)
          Responds to a sender/target pair with the given message in a NOTICE.
 
Methods inherited from class jackbot.FloodControlIRCClient
ircWrite, ircWriteNow
 
Methods inherited from class jackbot.IRCClient
connect, connect, disconnect, getName, getRealName, getTimeout, ircRead, isConnected, logoff, logoff, logon, setName, setRealName, setTimeout, willBlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UtilityIRCClient

public UtilityIRCClient(java.lang.String name,
                        java.lang.String desc)
Constructs a UtilityIRCClient object.

Method Detail

ircNotice

public void ircNotice(java.lang.String target,
                      java.lang.String msg)
Sends a NOTICE message to the server.


ircRespond

public void ircRespond(java.lang.String sender,
                       java.lang.String target,
                       java.lang.String msg)
Responds to a sender/target pair with the given message in a NOTICE. If the target is a channel, the responds will be sent to the target. If the target is not the channel (and is therefore the client), then the response will be sent to the sender.