degesch: fix quoting a slash
This commit is contained in:
parent
c421532e6e
commit
0c96563545
@ -1634,10 +1634,12 @@ process_input (struct app_context *ctx, char *user_input)
|
|||||||
|
|
||||||
if (!(input = iconv_xstrdup (ctx->term_to_utf8, user_input, -1, &len)))
|
if (!(input = iconv_xstrdup (ctx->term_to_utf8, user_input, -1, &len)))
|
||||||
print_error ("character conversion failed for `%s'", "user input");
|
print_error ("character conversion failed for `%s'", "user input");
|
||||||
else if (input[0] == '/' && input[1] != '/')
|
else if (input[0] != '/')
|
||||||
process_user_command (ctx, input + 1);
|
|
||||||
else
|
|
||||||
send_message_to_current_buffer (ctx, input);
|
send_message_to_current_buffer (ctx, input);
|
||||||
|
else if (input[1] == '/')
|
||||||
|
send_message_to_current_buffer (ctx, input + 1);
|
||||||
|
else
|
||||||
|
process_user_command (ctx, input + 1);
|
||||||
|
|
||||||
free (input);
|
free (input);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user