Welcome, guest! Login / Register - Why register?
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 text by tyler ( 18 years ago )
#
<?php
#
$me = "Cheese";
#
$channel = "#aquiline";
#
$irc = fsockopen("irc.rsaquiline.com",6667);
#
fwrite($irc, "NICK ".$me."rn");
#
fwrite($irc, "USER Raven . . :Tylerrn");
#
fwrite($irc, "MODE ".$me." +Bprn");
#
fwrite($irc, "JOIN ".$channel."rn");
#
        while (!feof($irc)) {
#
                $raw = fgets($irc);
#
                $raw = str_replace(array(chr(13),chr(10)),'',$raw);
#
                if ($raw) {
#
                        echo "<- ".$raw."n";
#
                }
#
                $line = explode(' ' , $raw);
#
                if ($line[0] == PING) {
#
                        fwrite($irc, "PONG ".$line[1]."rn");
#
                        echo "-> PONG ".$line[1]."n";
#
                }

#
	  if ($line[4] == $me.": ") {  $command = $line[5]; }
#
if ($command == 'Hi') {   fwrite($irc, "PRIVMSG  $channel :Hellorn");
#
 echo "-> PRIVMSG $channel Hello n";
#
 }
#
        }
#
        unset($me);
#
        unset($line);
#
        unset($raw);
#
        fclose($irc);
#
?>

 

Revise this Paste

Your Name: Code Language: