#!/usr/bin/wish

set tkabbers {}
foreach w [winfo interps] {
    if {[string equal -length 7 $w "tkabber"]} {
	lappend tkabbers $w
    }
}

if {$argc == 0} { set argv {{}} }

if {$argc > 1} { set argv [list $argv] }

if {[lsearch -exact $argv "XMMS playing: %s"] >= 0} { set argv {{}} }

foreach i $tkabbers {
    catch { send -async $i "set textstatus $argv
	    set userstatus \$userstatus" }
}

exit
