From: <ama...@us...> - 2003-08-05 00:48:41
|
Update of /cvsroot/binaryphp/binaryphp In directory sc8-pr-cvs1:/tmp/cvs-serv25362 Modified Files: testfile.php Log Message: added hello world example Index: testfile.php =================================================================== RCS file: /cvsroot/binaryphp/binaryphp/testfile.php,v retrieving revision 1.43 retrieving revision 1.44 diff -C2 -d -r1.43 -r1.44 *** testfile.php 4 Aug 2003 05:38:31 -0000 1.43 --- testfile.php 5 Aug 2003 00:48:38 -0000 1.44 *************** *** 14,17 **** if(strpos('TestBOT: PING?', $temp[2]) !== false) socket_write($sock, 'PRIVMSG ' . $temp3[2] . ' :' . $temp2[0] . ": PONG!\r\n"); } ! ?> \ No newline at end of file --- 14,23 ---- if(strpos('TestBOT: PING?', $temp[2]) !== false) socket_write($sock, 'PRIVMSG ' . $temp3[2] . ' :' . $temp2[0] . ": PONG!\r\n"); + + if(strpos('!quit', $temp[2]) !== false) + { + if($temp2[0] == 'Amaranth') + socket_write($sock, 'QUIT :Seeya ' . $temp3[2] . "\r\n"); + } } ! ?> |