Show username in notification
This commit is contained in:
parent
b7d8c89a6d
commit
1a8250f2b1
|
@ -150,7 +150,8 @@ function detect_new_tox_users {
|
|||
if [[ $line != "Failed*" && $line != "data "* && $line != "Anon "* && $line != "anon "* ]]; then
|
||||
if ! grep -q "$line" $PREV_TOX_USERS_FILE; then
|
||||
# get the nick of the user
|
||||
toxuser="$(echo "$line" | awk -F ' ' '{print $1}')"
|
||||
toxidstr=$(echo "$line" | awk '{print $(NF)}')
|
||||
toxuser=$(echo "$line" | sed "s| $toxidstr||g")
|
||||
|
||||
if [ -r "/home/$MESH_USERNAME/.dbus/Xdbus" ]; then
|
||||
. "/home/$MESH_USERNAME/.dbus/Xdbus"
|
||||
|
|
Loading…
Reference in New Issue