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

Quick Search    Search Deep

jackbot.plugin
Class BasicIRCFunctions  view BasicIRCFunctions download BasicIRCFunctions.java

java.lang.Object
  extended byjackbot.plugin.BasicIRCFunctions
All Implemented Interfaces:
jackbot.IRCMessageListener

public class BasicIRCFunctions
extends java.lang.Object
implements jackbot.IRCMessageListener

A basic plugin for providing handling very basic IRC functions. Currently, this handles the PING message, returning the requisite PONG. It also handles the !quit command, although this will eventually be moved into a script.

Version:
$Revision: 1.4 $ $Date: 2003/01/20 05:14:21 $

Constructor Summary
BasicIRCFunctions()
          Default constructor.
 
Method Summary
 void ircMessageReceived(jackbot.IRCMessage msg, jackbot.EventIRCClient client)
          Handles IRC events from the client.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicIRCFunctions

public BasicIRCFunctions()
Default constructor. Does nothing.

Method Detail

ircMessageReceived

public void ircMessageReceived(jackbot.IRCMessage msg,
                               jackbot.EventIRCClient client)
Handles IRC events from the client. This currently handles the PING message, and does a special case PRIVMSG handling for the !quit command, causing the bot to exit. This !quit handling will eventually be done in a script, and this code will be removed.

Specified by:
ircMessageReceived in interface jackbot.IRCMessageListener