Commit 607507d0 authored by user472393's avatar user472393
Browse files

allow either player to !won <<or>> !lost

parent 86aed335
......@@ -543,7 +543,7 @@ mode_select () {
unset -v modes["$entry"]
break 2
else
printer ">>> @$p1 (${elo_db[$p1]%.*}) vs. @$p2 (${elo_db[$p2]%.*}) in $ask ${modes[entry]}" "$p1 !won <<or>> $p1 !lost"
printer ">>> @$p1 (${elo_db[$p1]%.*}) vs. @$p2 (${elo_db[$p2]%.*}) in $ask ${modes[entry]}" ">>> report with !won <<or>> !lost"
$tv_titler -m "${modes[entry]}"
mode_record+=("${!modes[entry]}")
modes[entry]=">>>${modes[entry]}"
......@@ -565,7 +565,7 @@ mode_select () {
unset -v modes["$entry"]
break 2
else
printer ">>> @$p1 (${elo_db[$p1]%.*}) vs. @$p2 (${elo_db[$p2]%.*}) in $ask ${modes[entry]}" "$p1 !won <<or>> $p1 !lost"
printer ">>> @$p1 (${elo_db[$p1]%.*}) vs. @$p2 (${elo_db[$p2]%.*}) in $ask ${modes[entry]}" ">>> report with !won <<or>> !lost"
$tv_titler -m "${modes[entry]}"
mode_record+=("${!modes[entry]}")
sleep 2
......@@ -601,6 +601,26 @@ result_check () {
loser="$p1"
sleep 1
return 1
elif tail -n 1 "$channel" | grep -i "$p2" | grep '!won'; then
elo_case2
results+=("${modes[entry]} (+$p2)")
comment_string=$(tail -n 1 "$channel")
comment_string=${comment_string,,}
comment_string=${comment_string#*!won}
comments+=("$comment_string")
loser="$p1"
sleep 1
return 1
elif tail -n 1 "$channel" | grep -i "$p2" | grep '!lost'; then
elo_case1
results+=("${modes[entry]} (+$p1)")
comment_string=$(tail -n 1 "$channel")
comment_string=${comment_string,,}
comment_string=${comment_string#*!lost}
comments+=("$comment_string")
loser="$p2"
sleep 1
return 1
fi
done
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment