This is my procedure:
When i try to .k nick\something my bot give a mistake:### Kick ###
bind pub o .k pub_kick
proc pub_kick {nick uhost hand chan txt} {
set opc_knick [lindex $txt 0]
set opc_kreason [lrange $txt 1 end]
if [matchattr $opc_knick b] {
putserv "PRIVMSG $chan :This is not allowed!"
return 0
}
if {![onchan $opc_knick $chan]} {
putserv "notice $nick :$opc_knick is not on $chan"
return 0
}
if {$opc_kreason == ""} {
putserv "kick $chan $opc_knick :Requested by $nick"
return 0
}
putserv "kick $chan $opc_knick :$opc_kreason"
}
[04:41] <e-force> .k e-f\test
[04:41] -SpeeD_- e-f est is not on #SpeeD_
[04:41] <e-force> [04:41] -SpeeD_- e-f est is not on #SpeeD_
It can`t reconize nicks with "\"
Can someone explain me how to repair my script?