diff options
author | Timo Sirainen <cras@irssi.org> | 2002-07-01 18:03:40 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-07-01 18:03:40 +0000 |
commit | ea24fe9aeb48de6a0348c225f020ede1abfa18b6 (patch) | |
tree | 4cc35ac3b76a4aec2f944432cdc5fdf1f66d47ad /src | |
parent | b38316c8ba9776b3db538dec6ab4faf83041b7f3 (diff) | |
download | irssi-ea24fe9aeb48de6a0348c225f020ede1abfa18b6.zip |
fixed query to work with nicks beginning with '-' char
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2859 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-common/core/chat-completion.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fe-common/core/chat-completion.c b/src/fe-common/core/chat-completion.c index abb15404..aa619dc9 100644 --- a/src/fe-common/core/chat-completion.c +++ b/src/fe-common/core/chat-completion.c @@ -953,8 +953,9 @@ static void event_text(const char *data, SERVER_REC *server, WI_ITEM_REC *item) } } - str = g_strdup_printf(IS_CHANNEL(item) ? "-channel %s %s" : - IS_QUERY(item) ? "-nick %s %s" : "%s %s", + /* 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", window_item_get_target(item), line); signal_emit("command msg", 3, str, server, item); |