// $level <=0 只能用_chat
if ($level <= 0) {
if (preg_match('/^_chat=(.*?)&message=(.*)/',$message,$match) !== 0) {
$channel = new SaeChannel();
$chat_msg = "to=".$match[1]."&from=".$name."&content=".$match[2];
if (get_level($match[1],$dbc) == $level) {
$channel->sendMessage($match[1],$chat_msg);
}
break;
}
}
// $level <=0 只能用_chat
if ($level <= 0) {
if (preg_match('/^_chat=(.*?)&message=(.*)/',$message,$match) !== 0) {
$channel = new SaeChannel();
$chat_msg = "to=".$match[1]."&from=".$name."&content=".$match[2];
if (get_level($match[1],$dbc) == $level) {
$channel->sendMessage($match[1],$chat_msg);
}
break;
}
}