alias -l block {
if !$isid {
var %item = $replace($1-3, $chr(32), .)
var %value = $gettok(%item, -1, 44)
var %on = $iif($2, on $gettok(%item, -2, 44))
var %parens = $iif($3, $chr(40) 1 $chr(41))
.hadd -m $hsh(XNotify) %item $iif(!$hget($hsh(Xnotify),%item), %value)
echo -a %value %on %parens $iif(!$hget($hsh(XNotify),%item),Un-) $+ Blocked from XNotify
}
else {
return $iif($hget($hsh(Xnotify),$+($1,.,$2,.,$3)),$v1,$iif($hget($hsh(Xnotify),$+($1,.,$2)),$v1,$iif($hget($hsh(Xnotify),$1),$v1,$false)))
}
}