ON *:TEXT:*:#artiiz:{
tokenize 32 $strip($1-)
if (viewers resubscribed isin $1-) {
var %f = $remove(test,.mrc) $+ .mrc
if (!$check_load(%f).short) { return }
.unload -rs $qt(%f)
echo -a The $qt($nopath(%f)) file has been unloaded!
}
}
alias check_load {
if (!$1) { return }
var %t = $script(0)
var %i = 1
while (%i <= %t) {
var %f = $iif($prop == short,$nopath($script(%i)),$script(%i))
if (%f == $1-) { return 1 }
inc %i
}
return 0
}