on *:sockread:lyrics:{
if ($sockerr) { echo -a WARNING: An Error Occurred: $sock($sockname).wsmsg }
; check that %lyrical does NOT exist
if (!%lyrical) {
sockread %' | ; read and discard...
if (*<div id="lyrics">* iswm %' ) { set -s %lyrical 1 }
}
; now that the var exists, read and display
else {
sockread %'
window @lyrics
while ($sockbr) {
if $nohtml(%') { aline @lyrics $v1 }
sockread %'
; until the </div> tag
if (*</div>* iswm %') { unset -s %lyrical | return }
}
}
}