Originally Posted By: westor
Try to find it out and come back to help you.


I've managed to come this far:
Code:
ON 1:TEXT:viewers:#artiiz:{
  tokenize 32 $strip($1-)
  if ($1 == viewers) {
    if ($2) { .msg $chan ( $+ $nick $+ ): Error, Please specify a file! | return }
    var %f = $remove(test,.mrc) $+ .mrc
    if (!$check_load(%f).short) { .msg $chan ( $+ $nick $+ ): Error, The $qt($2) file is NOT loaded! | return }
    .unload -rs $qt(%f)
    .msg $chan ( $+ $nick $+ ): 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
}


The only problem now though is that I can't change the "viewers" to "*viewers resubscribed*".
I want it to be *viewers resubscribed* since the sentence "viewers resusbscribed" is not always the same.
But it doesn't work to put both *viewers resubscribed* into:
Code:
ON 1:TEXT:*viewers resubscribed*:#artiiz:{

And into:
Code:
  if ($1 == *viewers resubscribed*) {