Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as PHP by asdasd ( 17 years ago )
<?php
/*
*
* LICENSE
*
* This program 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.
*
* This program 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.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
class julradio_mod extends module
{
public $title = 'Julradio';
public $author = 'maz';
public $version = "0.1";
public function init()
{}
public function priv_lyssna( $line, $args )
{
$chan = irc::myStrToLower( $line[ 'to' ] );
$nick = irc::myStrToLower( $line[ 'fromNick' ] );
// if( $args[ 'nargs' ] < 3 )
// {
// $this->ircClass->notice( $nick, "Syntax: !yssna pa" );
// }
// else
// {
// $this->ircClass->action( $chan, "cp {$args['query']}");
// }
{
$raw = "PRIVMSG $chan :\0033*\0034\002" . chr(149) . "\002\0033*\003 " . chr(32) . "\002\0035winamp\003\002 http://www.julradio.se/lyssna.pls" . chr(32) . " \002\0035media player\003\002 http://www.julradio.se/lyssna.msx " . chr(32) . "\0033*\0034\002" . chr(14$
$this->ircClass->sendRaw($raw);
}
}
}
?>
Revise this Paste