upgrade your eggdropVolume wrote:Tcl error [badwhois:check]: invalid command name "stripcodes"
upgrade your eggdropVolume wrote:Tcl error [badwhois:check]: invalid command name "stripcodes"
Code: Select all
set bwhois(list) {
" "
"????? ????? ?????"
"?????? ?????? ??????"
"??????? ??????? ???????"
"???????? ???????? ????????"
"????????? ????????? ?????????"
"????? ?????"
"?????? ??????"
"??????? ???????"
"???????? ????????"
"????????? ?????????"
}
.................................................
proc badwhois:check {from key txt} {
global bwhois
if {![info exists bwhois(whois)]} {
set bwhois(whois) ""
}
if {[isbotnick [set nick [lindex [split $txt] 1]]] || [validuser [nick2hand $nick]]} {
return
}
set realname [stripcodes bcruag [string range [join [lrange [split $txt] 5 end]] 1 end]]
foreach bla $bwhois(list) {
if {[string match -nocase $bla $realname]} {
set position [lsearch $bwhois(whois) "*:[set mask *!*@[lindex $txt 3]]*"]
if {[botisop [set chan [lindex [set t [split [lindex $bwhois(whois) $position] :]] 1]]]} {
putquick "KICK $chan $nick :[lindex $bwhois(br) 0]" -next
}
newchanban $chan [lindex $t 2] BadWhois [lindex $bwhois(bc) 0] [lindex $bwhois(bc) 1]
set bwhois(whois) [lreplace $bwhois(whois) $position $position]
break
}
}
}
I dont know why you got so emotional and even tried to drop this on me, as far as I know my reply was pretty helpful (at least for me) because now I know what needs to be fixed in particular rather than searching where the error might be. Anyway, I forgive youcaesar wrote:Sir_Fz : either reply with a proper answer or don't reply at all.
Code: Select all
set bwhois(list) {
...........
"*\}*"
"*\{*"
}
Code: Select all
[lindex $txt 3]
Code: Select all
[lindex [split $txt] 3]