summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-07-01 21:39:07 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-07-01 21:39:07 +0000
commit35889a4ca8ad60f43505ed6b7d0ac2589eba61e1 (patch)
treecdd48c51c7c573fd2bc064eb7c73b3990b2d46ab
parent9b74acc9ab5c360e035510a7060f5d3ace387ac5 (diff)
downloadirssi-35889a4ca8ad60f43505ed6b7d0ac2589eba61e1.zip
the -nick fix broke things :) now a proper fix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2863 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r--src/fe-common/core/chat-completion.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fe-common/core/chat-completion.c b/src/fe-common/core/chat-completion.c
index aa619dc9..9e1c6eca 100644
--- a/src/fe-common/core/chat-completion.c
+++ b/src/fe-common/core/chat-completion.c
@@ -954,8 +954,8 @@ static void event_text(const char *data, SERVER_REC *server, WI_ITEM_REC *item)
}
/* use "--" just in case the nick contains '-' character */
- str = g_strdup_printf(IS_CHANNEL(item) ? "-channel %s -- %s" :
- IS_QUERY(item) ? "-nick %s -- %s" : "-- %s %s",
+ str = g_strdup_printf(IS_CHANNEL(item) ? "-channel \"%s\" %s" :
+ IS_QUERY(item) ? "-nick \"%s\" %s" : "%s %s",
window_item_get_target(item), line);
signal_emit("command msg", 3, str, server, item);