All pastes #990021 Raw Edit

Untitled

public text v1 · immutable
#990021 ·published 2008-04-19 22:48 UTC
rendered paste body
ON *:load:{
  echo -a >>> triggers loaded successfully
}

ON *:unload:{
  unset %triggerignore
  echo -a >>> triggers unloaded successfully
}

ON *:TEXT:*:*: {
  if ($1 == $chr(63) || $1 == $chr(33)) && ($3 == $null) {
    if ($chan == #my-torrents) {
      if (%triggerignore. [ $+ [ $nick ] ]) { /notice $nick You are still in my trigger ignore list. Please wait to use triggers }


      if ($2 == list) {
        msg $chan 3List: info coming soon
      }

      if (!%triggerignore. [ $+ [ $nick ] ]) {

        if ($2 == test) {
          notice $nick 3Test ignore script: blah
          notice $nick You are now ignored for 1 minute. | set -u60 %triggerignore. [ $+ [ $nick ] ] on }
          msg bAN01TgAZ ( $nick ) used $2 trigger in $chan
      }
    }
  }