fix typo in getusrname
This commit is contained in:
parent
1da6cf48d3
commit
68d9fbae8a
|
@ -88,7 +88,7 @@ getusr_name(){
|
|||
getusrname(){
|
||||
local username="$(tail -n 1 "${bot_tmpdir}${1}" | grep -om1\
|
||||
'"username":"\(\\"\|[^"]*\)*"\(,"language_code"\|},"chat"\)' | head -n1)"
|
||||
grep "\"language_code\"$" <<< "${username}" >/dev/null && utf-16-surrogate-pair-decode "${user_name:12:-17}"\
|
||||
grep "\"language_code\"$" <<< "${username}" >/dev/null && utf-16-surrogate-pair-decode "${username:12:-17}"\
|
||||
|| {
|
||||
grep "},\"chat\"$" <<< "${username}" >/dev/null && utf-16-surrogate-pair-decode "${username:12:-9}"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue