瀏覽代碼

Don't show default data tox users

These users have not set a profile name and so are probably not active
Bob Mottram 9 年之前
父節點
當前提交
e96cae2a55
沒有帳戶連結到提交者的電子郵件
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/zeronetavahi

+ 1
- 1
src/zeronetavahi 查看文件

115
 	toxctr=0
115
 	toxctr=0
116
 	echo '<ol type="square">' >> $TOX_USERS_FILE.new
116
 	echo '<ol type="square">' >> $TOX_USERS_FILE.new
117
 	while IFS='' read -r line || [[ -n "$line" ]]; do
117
 	while IFS='' read -r line || [[ -n "$line" ]]; do
118
-		if [[ $line != "Failed*" ]]; then
118
+		if [[ $line != "Failed*" && $line != "data "* ]]; then
119
 			echo "  <li>$line</li>" >> $TOX_USERS_FILE.new
119
 			echo "  <li>$line</li>" >> $TOX_USERS_FILE.new
120
 			toxctr=$((toxctr + 1))
120
 			toxctr=$((toxctr + 1))
121
 		fi
121
 		fi