any idea how to fix get work properly, thx in advance
1 error in PartyLine
Code: Select all
Tcl error [massconnectflood]: expected integer but got "10:30"
Code: Select all
# Mass Connect flood, Match on repeats:seconds #
set mhrp(flood) 10:30
set commChan "#services"
bind raw - NOTICE massconnectflood
proc massconnectflood {from key text} {
global mhrp
if {[string match *!*@* $from] || ![string match -nocase "*client connecting*" $text]} { return }
regexp {:\ ([^ ]+)\s\(([^@]+)@([^\)])+\)\s\[([^\]]+)} $text - nick ident host ip
set target [split $mhrp(flood) :]
set nick [lindex $mhrp(flood) 0]
set seconds [lindex $mhrp(flood) 1]
if {![info exists mhrp(flood)]} {
set mhrp(flood) 1
} else {
incr mhrp(flood)
}
if {$mhrp(flood) >= $nick} {
set mhrp(flood) 0
puthelp "PRIVMSG $::commChan :!gline on"
return 1
timer 10 [list putserv "PRIVMSG $::commChan : !gline off" ]
return 0
}
}