this message does not exist, you have schizophrenia

This commit is contained in:
flash 2023-04-12 02:34:00 +00:00
parent 7967fe1313
commit 3d96574258

View file

@ -160,11 +160,10 @@ switch($_SERVER['HTTP_X_GITHUB_EVENT']) {
break;
}
//
if(!empty($message)) {
var_dump($message);
$sock = fsockopen($config['boat']['host'], $config['boat']['port'], $errno, $errstr, 5);
$message = chr(1) . $message;
$message = chr(1) . '/msg flash ' . $message;
$message = hash_hmac('sha256', $message, $config['boat']['secret'], true) . $message;
fwrite($sock, $message);
}