Show username in notification

This commit is contained in:
Bob Mottram 2016-09-12 00:13:36 +01:00
parent b7d8c89a6d
commit 1a8250f2b1
No known key found for this signature in database
GPG Key ID: 0452CC7CEA982E38
1 changed files with 2 additions and 1 deletions

View File

@ -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"