BaseT/plugins/9998_pingresponse.php
2013-09-28 22:14:52 +03:00

9 lines
188 B
PHP

<?php
$_plugins['oninput'][] = function($id, $input) use (&$_write)
{
if (substr($input, 0, 4) === 'PING')
{
$_write($id, 'PONG :' . substr($input, 6) . "\r\n");
}
};