~ysu/gemini-chatroom

a680799a0b1808899ff69d862b47e068068da2ea — vps 1 year, 10 months ago c6d77e9
changed message formatting
1 files changed, 1 insertions(+), 1 deletions(-)

M bin/chat0/post
M bin/chat0/post => bin/chat0/post +1 -1
@@ 16,7 16,7 @@ nstr=$(echo $QUERY_STRING | sed 's/\(%0A\|
\)/ /g' | sed 's/%/\\x/g')
nuser=$(echo ${user//[!A-z]/})

if [ $(cat last_message) != $nstr ]; then
	printf "($(date "+%Y/%m/%d %R %Z")) $(echo $nuser: $nstr | awk '{printf "%9s   %s\n", $1, $2}')\n" >> message_log
	printf "($(date "+%Y/%m/%d %R %Z")) $(echo $nuser: $nstr | awk '{printf "%9s %s\n", $1, $2}')\n" >> message_log
	echo $nstr > last_message
	echo -e "30 /bin/chat$chatNum\r\n"
else