awesome script and I've used on it on my bot for awhile, just a heads up that something has changed in the tinyurl site causing the script to give links to the tinyurl preview link and not the actual link, screenshot here-> http://puu.sh/3ttej.png
modified the code so it would 'work' but it still doesn't work properly ...using my modified code I've found it adds a line to my custom aliases file, something like the following: banlocklist {%banmasklist.nick!*nick@host.mask.goes.here.org = -b
Now if I'm not mistaken the error is it marks the ban as = -b (which would mean unban if I'm reading that right) ..anyway if I figure something out with this code I'll update this thread ...anyway here's a look at my modded code.
on @:unban:#: {
if ($banmask iswm $address($me,5)) { return }
if ($nick != $me) && ($banmask != !@) && ($banmask != !@.) { banlocklist $banmask $chan | .timerbanlockon $+ $chan 1 3 banlockon $chan }
alias banlocklist {%banmasklist. [ $+ [ $2 ] ] = $addtok(%banmasklist. [ $+ [ $2 ] ],$1,32) }
alias banlockon {
scid $cid
var %banmasklist.tmp = %banmasklist. [ $+ [ $1 ] ]
if (!%banmasklist.tmp) return
var %x = $numtok(%banmasklist.tmp,32)
while (%x) {
%banmask.tmplist = $addtok(%banmask.tmplist,$gettok(%banmasklist.tmp,%x,32),32)
inc %banmask.lmt
if (%banmask.lmt == $modespl) { raw -q mode $1 + [ $+ [ $str(b,$modespl) ] ] %banmask.tmplist | unset %banmask. }
dec %x
}
if (%banmask.tmplist) { raw -q mode $1 + [ $+ [ $str(b,$numtok(%banmask.tmplist,32)) ] ] %banmask.tmplist | unset %banmask. }
.timer(banlock) 1 2 describe $1 Those masks are under banlocking...sorry
scid -r
}
adding the code -> write -il1 botreport_log.txt $nick on $chan : reason : $2-
one line before the timer will cause the script to log all reported errors to a
text file located in the bots $mircdir. Also the 'else' statement was not working
for me so I just replaced the code with the following and had no issues.
Changed:
else { msg $chan Sorry $nick but to send 3report message 1u must give some reason/s ! }
}
to
on :TEXT::#: {
if (!botreport iswm $1-) {
msg $chan Sorry $nick but to send an error report you must give some reason(s)!
}
}
awesome script and it worked great for awhile, just a heads up it errors out now ...when I get a chance to go over the code I will attempt to fix it and report my results back here. Screen: http://i.imgur.com/oJNl3ZJ.png