1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

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
This commit is contained in:
Timo Sirainen 2002-07-01 18:03:40 +00:00 committed by cras
parent b38316c8ba
commit ea24fe9aeb

View File

@ -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);