i have a problem in my tcl, if ops banning *[*[*!*@* my bot will detect it as *!*@* (massban) and also if ops banning *[a]*!*@* my bot will detect it as *a*!*@* ; how we can solve this thing? anyone can help me?
here are some code i try to make to solve the problem:
See the linked post for information on repairing whatever script you have that detects bans improperly.
As for detecting massbans, I'd say first off, you're using the wrong order of arguments in your string match (it's "string match <pattern> <string>"). But since you really don't want any wildcard matching (you just wish to know wether the ban actually is *!*@*, not wether it matches it), you'd be better off using "string compare".
Might be able to simply use this regular expression instead?
awesome, your code is working.. im currently testing it in DALnet network,
currently making some mode lock just as chanserv did (example +nt-pk) and this massban protection is a part of it... thank you very much.