All pastes #478177 Raw Edit

Ignore PMs

public text v1 · immutable
·published 2007-05-09 00:51 UTC
rendered paste body
menu nicklist {
  Ignore PMs
  .Ignore user(s)
  ..Ignore PMs from $$1 :/ignore -p $$1
  ..Unignore PMs from $$1 :/ignore -rp $$1
  ..Clear ignore list: /ignore -rp
  .Accept/decline all
  ..Accept all PMs: unset %nopms | echo $color(notice) -a $+(-,$me,-) Now accepting PMs
  ..Decline all PMs: set %nopms 1 | echo $color(notice) -a $+(-,$me,-) Now declining PMs
}
on ^*:OPEN:?:*:  { 
  if (%nopms) { 
    .msg $nick I am currently not accepting private messages. Please try again later or use ingame ticket system.
    echo -a 4,1 $nick  tried to PM you. Attempt blocked.
    halt 
  } 
}
on *:exit: unset %nopms
}