From b46d7732e01e6762cbb05123aa9fd90774ed5c53 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Thu, 5 Dec 2019 22:43:22 +0100 Subject: [PATCH] prevent message dropping, problem was faulty double submit detection --- channel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channel.sh b/channel.sh index 4088994..83b38d9 100755 --- a/channel.sh +++ b/channel.sh @@ -21,7 +21,7 @@ case $(POST action) in else lasttime=0 fi - if [ -f "$chatfile" -a "$channelkey" = "$(POST channelkey)" -a "$(POST timenonce)" -gt "$lasttime" ]; then + if [ -f "$chatfile" -a "$channelkey" = "$(POST channelkey)" -a "$(POST timenonce)" -ge "$lasttime" ]; then printf "%s %s: %s\n" "$(date +%F_%T)" "$(STRING "$nickname")" "$(POST message |STRING)" >>"$chatfile" fi REDIRECT "$(URL "/$LOCATION")" -- 2.39.2