mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-31 17:56:21 +00:00
Added ": " after nick autocomplete when start of message
This commit is contained in:
@@ -608,6 +608,9 @@ muc_autocomplete(char *input, int *size)
|
|||||||
if (result != NULL) {
|
if (result != NULL) {
|
||||||
GString *replace_with = g_string_new(chat_room->autocomplete_prefix);
|
GString *replace_with = g_string_new(chat_room->autocomplete_prefix);
|
||||||
g_string_append(replace_with, result);
|
g_string_append(replace_with, result);
|
||||||
|
if (last_space == NULL || (*(last_space+1) == '\0')) {
|
||||||
|
g_string_append(replace_with, ": ");
|
||||||
|
}
|
||||||
ui_replace_input(input, replace_with->str, size);
|
ui_replace_input(input, replace_with->str, size);
|
||||||
g_string_free(replace_with, TRUE);
|
g_string_free(replace_with, TRUE);
|
||||||
g_free(result);
|
g_free(result);
|
||||||
|
|||||||
Reference in New Issue
Block a user