ソースを参照

List tox users in a friendlier way

Bob Mottram 8 年 前
コミット
3684e93896
コミット者のEメールアドレスに関連付けられたアカウントが存在しません
共有1 個のファイルを変更した3 個の追加1 個の削除を含む
  1. 3
    1
      src/zeronetavahi

+ 3
- 1
src/zeronetavahi ファイルの表示

109
 }
109
 }
110
 
110
 
111
 function detect_tox_users {
111
 function detect_tox_users {
112
-	lstox > $TEMPFILE
112
+	# don't show the first peer field
113
+	lstox | awk -F ' ' '{$1=""; print $0}' | sed -e 's/^[[:space:]]*//' | sort -d > $TEMPFILE
114
+
113
 	toxctr=0
115
 	toxctr=0
114
 	echo '<ol type="square">' >> $TOX_USERS_FILE.new
116
 	echo '<ol type="square">' >> $TOX_USERS_FILE.new
115
 	while IFS='' read -r line || [[ -n "$line" ]]; do
117
 	while IFS='' read -r line || [[ -n "$line" ]]; do