I want to strip out the users name from the text and just check the rest of the text.
I tried using this :-
Code: Select all
foreach user [split [chanlist $chan] " "] {
set found [string match -nocase *$user* $text]
if {$found} {
regsub -all -nocase -- $user $text [string tolower $user] text
}
I also tried using these :-
Code: Select all
set text [string trim [string range $text $nick+1 e]]
Code: Select all
set text [string trim $text {$nick+1} e]
Code: Select all
set text [string trim $text [expr $nick+1] e]
All of the above codes came up with this return :-
bad index "whatever the action was": must be integer or end?-integer?
Can somebody please help me to solve this problem?