mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +02:00
'\' characters in nicks were skipped when sending messages in queries.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2867 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
c9f5eafb3d
commit
d11cb0f2c2
3 changed files with 23 additions and 2 deletions
|
|
@ -928,7 +928,7 @@ static char *auto_complete(CHANNEL_REC *channel, const char *line)
|
|||
|
||||
static void event_text(const char *data, SERVER_REC *server, WI_ITEM_REC *item)
|
||||
{
|
||||
char *line, *str;
|
||||
char *line, *str, *target;
|
||||
|
||||
g_return_if_fail(data != NULL);
|
||||
|
||||
|
|
@ -956,9 +956,11 @@ static void event_text(const char *data, SERVER_REC *server, WI_ITEM_REC *item)
|
|||
/* 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. */
|
||||
target = escape_string(window_item_get_target(item));
|
||||
str = g_strdup_printf(IS_CHANNEL(item) ? "-channel \"%s\" %s" :
|
||||
IS_QUERY(item) ? "-nick \"%s\" %s" : "%s %s",
|
||||
window_item_get_target(item), line);
|
||||
target, line);
|
||||
g_free(target);
|
||||
|
||||
signal_emit("command msg", 3, str, server, item);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue