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-
}
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-
}
}
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