Update to send message even if no changes.

This commit is contained in:
Ceda EI 2018-04-09 21:46:41 +05:30
parent 9f14bd823a
commit 9013fd972e
2 changed files with 4 additions and 1 deletions

View File

@ -165,6 +165,9 @@ if ($saved_chain != $chain_string) {
fwrite($file2, $contents);
fclose($file2);
}
elseif ($argv[1] == "send") {
send_text("The pinned message is already the latest.");
}
$conn->close();

View File

@ -74,7 +74,7 @@ function member_exit() {
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.");
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.