Hmmm, lets see now.
Is this set to the correct list index number, even?
Or you might be splitting it wrong.
Code: Select all
set usernick [lindex [split $args] 9]
add these lines in the script
Code: Select all
putlog "/[1/] Bad user nick: [lindex [split $args] 9]"
putlog "/[2/] Bad user nick: [lindex $args 9]"
This should show you in dcc partyline with the bot when
the script runs the results, which of these is correct, by
giving results, or if it isn't correct.
This is to check if it is okay and should tell you if you have
set it on the correct list index.
---
Still hopeless if this doesn't do it then, you can try this.
remove this line from the script
Code: Select all
set usernick [lindex [split $args] 9]
and then replace this line
Code: Select all
if {[string match -nocase *$nick* $usernick]} {
by this line
Code: Select all
if {[string match -nocase *$nick* $args]} {
Or try running this code, its the same after replacing if
you don't get what I have just said.
Infact try running this code
Code: Select all
set killnicks {
"dick"
"bitch"
}
set killreason "\00304Réason: \00301\037B\037\00314ad \00301\037N\037\00314ick \00301\037D\037\00314étéctéd\003"
bind raw - NOTICE client:connect
proc client:connect {from keyword arg} {
global killnicks killreason
if {[string match -nocase "*client connecting*" $arg]} {
foreach nick $killnicks {
if {[string match -nocase *$nick* $arg]} {
putserv "KILL $nick :$killreason"
return 0
}
}
}
}
If still this doesn't do it, its a hopeless case
I rest my case