<?PHP
/**
* NickServ Plugin
*
* @version 0.1
* @author Max Rosan <hide@address.com>
*
* This file is part of maxIrcBot.
*
* maxIrcBot is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* maxIrcBot is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
class plugin_NickServ {
private $maxIrcBot;
/**
* @return void
* @param maxIrcBot $clss
* @desc Construtor
*/
public function __construct(maxIrcBot &$clss) {
$this->maxIrcBot = &$clss;
}
/**
* @return void
* @param String $senha
* @desc Tentar fazer o login com a senha - the bot tries to go in
*/
public function identify($pass) {
$this->maxIrcBot->write('NickServ IDENTIFY ' . $pass);
}
}
?>