# HG changeset patch # User Matti Hamalainen # Date 1613550083 -7200 # Node ID 98e2254056b2fbe2931e89ca868979668d86680b # Parent cf62cdc44568a96d468a207ada52c96cd9fc5033 tj: Adjust few comments. diff -r cf62cdc44568 -r 98e2254056b2 tj.tcl --- a/tj.tcl Tue Feb 16 13:16:08 2021 +0200 +++ b/tj.tcl Wed Feb 17 10:21:23 2021 +0200 @@ -509,7 +509,8 @@ return 1 } - if {$nids < 1} { + if {$nids == 0} { + # No, error out tj_msg $upublic $unick $uchan "err_no_such_id" [list $uid] return 1 } @@ -552,7 +553,9 @@ # Check for #id prefix set notdefault [tj_get_id $rarg rindex uid] + # Check if name is specified if {[utl_arg_get $rarglist rindex rarg 0]} { + # Validate it set uname [tj_correct_handle $rarg] if {$uname == ""} { tj_msg $upublic $unick $uchan "err_unknown_user" [list $rcmd]