Twitch: shouldn't the second-to-last line read
Code:
if ((!$hget(%s,read)) && (%t != $null)) {
?
(because $hget(%s,read) is/needs to be $false)