Skip to content
Snippets Groups Projects
Unverified Commit 1a8250f2 authored by Bob Mottram's avatar Bob Mottram
Browse files

Show username in notification

parent b7d8c89a
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment