All pastes #881365 Raw Edit

Untitled

public text v1 · immutable
#881365 ·published 2008-01-29 22:57 UTC
rendered paste body
Notice Blocker V1 ~~Created by The`God~~
Commands:
/Noticeon - Blocks all Notices, with the Exceptions of the ones in the Except.ini File.
/Noticeoff - Turns the blocker off, allowing you to recieve all notices.
/Add NAME - Adds a Name into the Excepts.ini File.
/Del NAME - Removes a Name from the Excepts.ini File.
/View - Views the Names listed in the Excepts.ini File.
/Clear - Clears all Names in the Excepts.ini File.


on *:NOTICE:*:?:{
  if ($nick isin Excepts.ini) { 
    halt
  }
  if (%bn == on) {
    notice $nick You don't have permission to notice this user. You've been blocked.
    ignore -pu500 $nick
  }
}


alias Noticeon {
  echo -a Now blocking all Incomming Notices.
  inc %bn
  set %bn On
}

alias Noticeoff {
  echo -a You will now be accepting all Incomming Notices.
  inc %bn
  set %bn Off
}

alias Add {
  echo -a Added $1 To the Excepts list.
  write excepts.ini $1-
}

alias Del {
  echo -a Deleted $1 From the Excepts list.
  write -d excepts.ini $1
}

alias View {
  echo -a Please wait... Opening Excepts.ini
  run excepts.ini
}

alias Clear {
  echo -a All Notice Excepts have been Cleared Successfully.
  write -c excepts.ini
}