-if [ "`gajim-remote check_gajim_running 2>/dev/null`" = True ]; then
- gajim-remote change_status "$2" "$3"
-else
+if [ "`gajim-remote check_gajim_running 2>/dev/null | tail -1`" = True ]; then
+ gajim-remote change_status "$2" "$title"
+elif pgrep pidgin >/dev/null; then