Source for file example3.php
Documentation is available at example3.php
* Copyright (C) 2002-2003 Mirco "MEEBEY" Bauer <mail@meebey.net> <http://www.meebey.net>
* Full LGPL License: <http://www.meebey.net/lgpl.txt>
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* This library 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
* Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
// ---EXAMPLE OF HOW TO USE Net_SmartIRC---
// this code shows how a mini php bot could be written
include_once('Net/SmartIRC.php');
public function __construct ($irc)
public function __destruct ()
$this->irc->unregisterActionId ($this->handlerid);
public function op_list ($irc, $data)
// Here we're going to get the Channel Operators, the voices and users
// method is available too, e.g. $irc->getChannel('#test')->users will
// return all of the channel's users.
// result is sent to the channel
// Using Channel Syncing we will track all users on all channels we are joined
'ChannelSyncing' => true ,
$irc->connect ('chat.freenode.net', 6667 );
$irc->login ('Net_SmartIRC', 'Net_SmartIRC Client '. SMARTIRC_VERSION. ' (example3.php)', 8 , 'Net_SmartIRC');
$irc->join(array ('#smartirc-test','#test'));
Documentation generated on Thu, 25 Jul 2019 12:49:07 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|