diff --git a/serio b/serio index f726a5a..e4364f3 100755 --- a/serio +++ b/serio @@ -952,7 +952,7 @@ def main(): exit(EX_USAGE) host_end = tmp_cmd_str.find(' ') - if '@' in tmp_cmd_str: + if '@' in tmp_cmd_str[0:host_end]: # strip off leading [user@] host_start = tmp_cmd_str.find('@') + 1 else: