Zmodem commented on a Page, Basic Report Snippet  -  Aug 29, 2008

May I suggest a protection for this so nobody can exploit it? A sort of addition:

on *:text:!report*:#: {
  var %n = $nick
  if (!%report.script. [ $+ [ %n ] ]) {
    if ((!$2) || (!$3)) {
      .notice %n You have not entered a $iif(!$2,username,reason) for that report!
      .notice %n Please use !report <user name> <reason for report>
      .notice %n Allow 5 seconds before attempting again...
      set -u5 %report.script. [ $+ [ %n ] ] 1
      return
    }
    set -u20 %report.script. [ $+ [ %n ] ] 1
    .notice %n Thanks for the report, it will be reviewed by an operator ASAP. Please allow 20 seconds before sending further reports. Thank you!
    msg # Report From %n : Nick: $2 ||| Reason: $3-
  }
}
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.