I downloaded lammer.tcl from this site.
But the script is buggy when need to ban someone without ident enabled, because the ban missed the ´~´ so the ban is useless.
The code of the script is:
Code: Select all
newchanban $chan [maskhost [getchanhost $nick $chan]] "Sentinel" "Repeating is not allowed"
putserv "KICK $chan $nick :Repeating is not allowed" -next
putserv "MODE $chan +b [maskhost [getchanhost $nick $chan]]" -next
I rewrote that part:
Code: Select all
set host [string tolower [lindex [split [getchanhost $nick $chan] @] 1]]
newchanban $chan *!*@$host "Sentinel" "No repitas" $flood_time
putserv "KICK $chan $nick :No repitas" -next
putserv "MODE $chan +b *!*@$host" -next
I'm unclear what the problem is.
Someone can see a problem in that ?
Thanks a lot.