Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php //optimization of http://pastebin.com/xyEWdk7C
- $tosend = '';
- $s = fsockopen('nucleus.kafuka.org', 6667, $errnum, $errstr, 30);
- makebot:
- if(!$tosend)
- $tosend = "USER phasic phasic phasic :Kyurel's bot\r\nNICK PHasic";
- $t = fgets($s);
- $ping = substr($t, 0, 4);
- if($ping == 'PING')
- $tosend = 'PONG'.substr($t, 4);
- if($tosend == 'nothing')
- goto makebot;
- fputs($s, $tosend . chr(10) . chr(13));
- $tosend = 'nothing';
- goto makebot;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment