Преглед изворни кода

At most announce one new mesh user

This prevents potential notification flooding if you join a large mesh
Bob Mottram пре 9 година
родитељ
комит
2789ac7ac7
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1
    0
      src/zeronetavahi

+ 1
- 0
src/zeronetavahi Прегледај датотеку

133
                     toxuser="$(echo "$line" | awk -F ' ' '{print $1}')"
133
                     toxuser="$(echo "$line" | awk -F ' ' '{print $1}')"
134
 
134
 
135
                     export DISPLAY=:0.0 && export XAUTHORITY=/home/$MESH_USERNAME/.Xauthority && sudo -u MESH_USERNAME /usr/bin/notify-send $"$toxuser" $"has joined the mesh" --icon=dialog-information
135
                     export DISPLAY=:0.0 && export XAUTHORITY=/home/$MESH_USERNAME/.Xauthority && sudo -u MESH_USERNAME /usr/bin/notify-send $"$toxuser" $"has joined the mesh" --icon=dialog-information
136
+                    break
136
                 fi
137
                 fi
137
             fi
138
             fi
138
         done < "$CURRENT_USERS_FILE"
139
         done < "$CURRENT_USERS_FILE"