From 0aecf3fa5b6099bbb4995f669c6366ccca2b59b7 Mon Sep 17 00:00:00 2001 From: celso Date: Wed, 22 Mar 2023 15:12:57 -0300 Subject: [PATCH] fixed getusr_name being called without arguments --- bashbot-lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashbot-lib.sh b/bashbot-lib.sh index 71afa68..4a7b027 100755 --- a/bashbot-lib.sh +++ b/bashbot-lib.sh @@ -98,7 +98,7 @@ getchat_title(){ local chat_title="$(tail -n 1 "${bot_tmpdir}${1}" | grep -om1\ '"title":"\(\\"\|[^"]*\)*","type":"group"' | head -n1)" [ ! -z "${chat_title}" ] && utf-16-surrogate-pair-decode "${chat_title:9:-16}"\ - || getusr_name + || getusr_name "${1}" } get_cbks() {