All pastes #952605 Raw Edit

Stuff

public text v1 · immutable
#952605 ·published 2008-03-22 11:00 UTC
rendered paste body
<?php
/*

Change:

'class_name' to the name of your module (specified in function.conf)

Add:

Your functions after "//Methods here:"

Add:

Timer declarations and other general startup stuff to be run when the bot starts up in the init() function

*/

class oper extends module {

        public $title = "Oper Module";
        public $author = "Neronix";
        public $version = "0.0.1";

        public function init()
        {
                // Add your timer declarations and whatever
                // else here...
        }

        public function destroy()
        {
                // Put code here to destroy the timers that you created in init()
                // and whatever else cleanup code you want.
        }

        //Methods here:
}
priv !ad true true true 0 oper priv_ad
private function priv_ad($line, $args)
        {
                if (!$this->ad[$args['cmd']])
                {
                        $this->ircClass->notice($line['fromNick'], "There are no news items for this channel.");
                        return;
                }
?>