diff --git a/src/freedombone-controlpanel-user b/src/freedombone-controlpanel-user index 9cb6803b..cd36676f 100755 --- a/src/freedombone-controlpanel-user +++ b/src/freedombone-controlpanel-user @@ -62,9 +62,11 @@ function remove_user_from_mailing_list { list_name=() while read -r listname; do i=$((i+1)) - W+=($i "$listname") - list_name+=("$listname") - echo $listname + if [[ "$listname" != *']'* && "$listname" != *'['* ]]; then + W+=($i "$listname") + list_name+=("$listname") + echo $listname + fi done <<< "$USER_MAILING_LISTS" i=$((i+1))