I have a little Script that should kick and ban a user via bublic command. I just start the proc using !lamer NICKNAME. I also entered this line to check if the user is in the channel before kicking:
Code: Select all
} elseif {[lsearch -exact [string tolower [chanlist $channel]] [string tolower [lindex [split $arg] 0]]]==-1} { putserv "PRIVMSG $channel :Error: \"[lindex [split $arg] 0]\" ist nicht in diesem Channel! $lamerusage" }
1. nickname
2. nickname & Bantime
Whenever I try to kick a user that uses Brackets and Pipes in his nick, i get the error, that the user is not in the channel. Does anyone know how to solve that?