Pārlūkot izejas kodu

Show username in notification

Bob Mottram 8 gadus atpakaļ
vecāks
revīzija
1a8250f2b1
Revīzijas autora e-pasts nav piesaistīts nevienam kontam
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2
    1
      src/meshavahi

+ 2
- 1
src/meshavahi Parādīt failu

150
             if [[ $line != "Failed*" && $line != "data "* && $line != "Anon "* && $line != "anon "* ]]; then
150
             if [[ $line != "Failed*" && $line != "data "* && $line != "Anon "* && $line != "anon "* ]]; then
151
                 if ! grep -q "$line" $PREV_TOX_USERS_FILE; then
151
                 if ! grep -q "$line" $PREV_TOX_USERS_FILE; then
152
                     # get the nick of the user
152
                     # get the nick of the user
153
-                    toxuser="$(echo "$line" | awk -F ' ' '{print $1}')"
153
+                    toxidstr=$(echo "$line" | awk '{print $(NF)}')
154
+                    toxuser=$(echo "$line" | sed "s| $toxidstr||g")
154
 
155
 
155
                     if [ -r "/home/$MESH_USERNAME/.dbus/Xdbus" ]; then
156
                     if [ -r "/home/$MESH_USERNAME/.dbus/Xdbus" ]; then
156
                         . "/home/$MESH_USERNAME/.dbus/Xdbus"
157
                         . "/home/$MESH_USERNAME/.dbus/Xdbus"