ctcp *:*:*:{
if ($nick == $me) return
hinc -mu30 ctcpflood $+ $cid $wildsite
if ($hget(ctcpflood $+ $cid,$wildsite) == 5) {
echo 04 -a $str($chr(160),10) $nick has requested 5 ctcps from you in 30 seconds. Ignoring all ctcps... Type /uctcp to remove ignores.
.ictcp
hfree ctcpflood $+ $cid
}
else echo 04 -a $str($chr(160),10) You were $1 checked by $nick $+ . To ignore CTCPs type /ictcp and to remove /uctcp
}
alias ictcp ignore -tw *!*@*
alias uctcp ignore -rw *!*@*
This will allow 5 ctcps in 30 seconds. To change the no. of seconds change "hinc -mu30" to "hinc -mu<number of seconds>". To change the no. of allowed ctcps change "if ($hget(ctcpflood $+ $cid,$wildsite) == 5)" to "if ($hget(ctcpflood $+ $cid,$wildsite) == <number of seconds>)"
Edited Mar 12, 2006 2:52 PM by hixxy