this message does not exist, you have schizophrenia
This commit is contained in:
parent
7967fe1313
commit
3d96574258
1 changed files with 1 additions and 2 deletions
|
@ -160,11 +160,10 @@ switch($_SERVER['HTTP_X_GITHUB_EVENT']) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
|
||||||
if(!empty($message)) {
|
if(!empty($message)) {
|
||||||
var_dump($message);
|
var_dump($message);
|
||||||
$sock = fsockopen($config['boat']['host'], $config['boat']['port'], $errno, $errstr, 5);
|
$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;
|
$message = hash_hmac('sha256', $message, $config['boat']['secret'], true) . $message;
|
||||||
fwrite($sock, $message);
|
fwrite($sock, $message);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue