i have tried that also. no luck. the part as i have it now is: # main procedure to handle the commands proc pub:xp { nick uhost handle channel arg } { # check if command should work in this chan set chan [string tolower $channel] if { ![isenabledchan $chan] } { return 1 } if { [llength $arg] == 0 } ...