From ddfc6aebcc2ba205ec6fe33f77027a9d9d727c59 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 1 Jul 2002 21:45:16 +0000 Subject: [PATCH] comment update git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2864 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/chat-completion.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fe-common/core/chat-completion.c b/src/fe-common/core/chat-completion.c index 9e1c6eca..c70f7e5b 100644 --- a/src/fe-common/core/chat-completion.c +++ b/src/fe-common/core/chat-completion.c @@ -953,7 +953,9 @@ static void event_text(const char *data, SERVER_REC *server, WI_ITEM_REC *item) } } - /* use "--" just in case the nick contains '-' character */ + /* the nick is quoted in case it contains '-' character. also + spaces should work too now :) Unquoter function also allows + '"' characters as long as the next character isn't space. */ str = g_strdup_printf(IS_CHANNEL(item) ? "-channel \"%s\" %s" : IS_QUERY(item) ? "-nick \"%s\" %s" : "%s %s", window_item_get_target(item), line);