My problem (with TCL of course) is probaby so simple to solve but, in my current brain dead state it's beyond me; and after hours of searching and experimenting.
I have written a nifty little script that bans all users entering a channel with numerical idents (~stw52890@ for example), instead of doing the conventional ban I just want to ban the last digit ie. *!*0@* no matter what that digit is. Can any one help one brain dead user?
Add [SOLVED] to the thread title if your issue has been. Search | FAQ | RTM
set ident [lindex [split $uhost @] 0]
# replace with newchanban or whatnot...
putserv "MODE #chan +b *!*[string range $ident end end]@*"
# 'end end' may be invalid arguments depending on your Tcl Version,
# so you may need to use:
# *!*[string index $ident [expr {[string length $ident] - 1}]]@*