Basic Report Snippet

By [cave][man] on Jul 01, 2007

Just a basic Report system.

When someone types !report
It will message all ops and up with:
Report from : Nick: ||| Reason:
feel free to edit it in any way :D

on *:text:!report*:#: {
  if (!$2) {
    notice $nick You have not entered a username to report!
    notice $nick Please use !report <user name>
    halt
  }
  if (!$3-) {
    notice $nick You have not entered a reason for the report!
    notice $nick Please use !report <user name> <reason for report>
    halt
  }
  notice $nick Processing . . . please wait.
  timer 1 3 notice $nick Thanks for the report, it will be reviewed by an operator ASAP
  msg $chan Report From $nick : Nick: $2 ||| Reason: $3-
}

Comments

Sign in to comment.
Zmodem   -  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  
AlexHopper   -  Aug 29, 2008

o.o cool

 Respond  
[cave][man]   -  Jul 01, 2007

oops i forgot to delete \"#coldthugz\" and thx noutrious

 Respond  
Noutrious   -  Jul 01, 2007

if (!$2-) { can be replaced with if (!$2) { plus there isn\'t no need for the timer and the chan should be replaced by an variable, for example:

   var %chan = #Mychan
  notice $nick Processing . . . please wait.
  timer 1 3 notice $nick Thanks for the report, it will be reviewed by an operator ASAP
  msg $+(@,%chan) Report From $nick : Nick: $2 ||| Reason: $3-
}

Currently it\'s 3/10

 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.