<?php
/* (C) Copyright 2004 Armond Carroll. All rights reserved.
Distributed under the BSD License. Please see license.txt for license,
or http://www.opensource.org/licenses/bsd-license.php.
http://mpibot.sourceforge.net
Purpose of this file:
To provide an overridable class for the base of all modules.
File Version: 1.1
Last Modified: 4/30/2004 1:47AM
*/
class BaseModule {
function on_connect() { return 0; } // When 001 is received
function on_quit() { return 0; } // When QUIT is sent, not nessarily the end of the bot's life
function on_trigger($info) { return 0; } // A public or private message preceded by a .
function on_joinchan($chan, $key) { return 0; } // When a channel is joined
function on_partchan($chan) { return 0; } // When a channel is parted
function on_recv($raw) { return 0; } // Anything message recv'd - raw string is sent
function on_msg($i) { return 0; } // When a PRIVMSG is recv'd (thats public and private ones)
}
?>