~ysu/gemini-chatroom

107f2e0429f59f931133b670707268dd2256bb4d — vps 3 years ago 24ec3eb
added support for capital letters in usernames
1 files changed, 1 insertions(+), 1 deletions(-)

M bin/chat0/post
M bin/chat0/post => bin/chat0/post +1 -1
@@ 13,7 13,7 @@ if [ -z "$user" ]; then
fi

nstr=$(echo $QUERY_STRING | sed 's/\(%0A\|
\)/ /g' | sed 's/%/\\x/g')
nuser=$(echo ${user//[!a-z]/})
nuser=$(echo ${user//[!A-z]/})

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