From afde9d770a94aa2684d6d40a7735a775b0122594 Mon Sep 17 00:00:00 2001 From: James Booth Date: Tue, 15 Jul 2014 23:52:08 +0100 Subject: [PATCH] Added ": " after nick autocomplete when start of message --- src/muc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/muc.c b/src/muc.c index 95f8e730..d623da2d 100644 --- a/src/muc.c +++ b/src/muc.c @@ -608,6 +608,9 @@ muc_autocomplete(char *input, int *size) if (result != NULL) { GString *replace_with = g_string_new(chat_room->autocomplete_prefix); 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); g_string_free(replace_with, TRUE); g_free(result);