Update to send message even if no changes.
This commit is contained in:
parent
9f14bd823a
commit
9013fd972e
|
@ -165,6 +165,9 @@ if ($saved_chain != $chain_string) {
|
||||||
fwrite($file2, $contents);
|
fwrite($file2, $contents);
|
||||||
fclose($file2);
|
fclose($file2);
|
||||||
}
|
}
|
||||||
|
elseif ($argv[1] == "send") {
|
||||||
|
send_text("The pinned message is already the latest.");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$conn->close();
|
$conn->close();
|
||||||
|
|
|
@ -74,7 +74,7 @@ function member_exit() {
|
||||||
|
|
||||||
function update() {
|
function update() {
|
||||||
send_html("Update started. New chain will only be send if the chain has changed. Please wait as this takes about a minute.");
|
send_html("Update started. New chain will only be send if the chain has changed. Please wait as this takes about a minute.");
|
||||||
exec('echo php ' . __DIR__ . '/update_chain.php | at now');
|
exec('echo php ' . __DIR__ . '/update_chain.php send | at now');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get JSON from post, store it and decode it.
|
// Get JSON from post, store it and decode it.
|
||||||
|
|
Loading…
Reference in New Issue