summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2014-03-11 15:16:55 +0100
committerSebastien Helleu <flashcode@flashtux.org>2014-03-11 15:16:55 +0100
commite3207000dd346508d15d192169f47c3a7517d4f9 (patch)
tree3986a25231ff6457a20069c7b9ba895be5747b25 /src/plugins
parent9c838d262827777cbe8d524757b249bc341d3c08 (diff)
downloadweechat-e3207000dd346508d15d192169f47c3a7517d4f9.zip
fifo: search buffer by full name when text is received in pipe
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/fifo/fifo.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/plugins/fifo/fifo.c b/src/plugins/fifo/fifo.c
index bc67598d8..9b565437f 100644
--- a/src/plugins/fifo/fifo.c
+++ b/src/plugins/fifo/fifo.c
@@ -233,7 +233,7 @@ fifo_remove ()
void
fifo_exec (const char *text)
{
- char *text2, *pos_msg, *pos_buffer;
+ char *text2, *pos_msg;
struct t_gui_buffer *ptr_buffer;
text2 = strdup (text);
@@ -265,21 +265,7 @@ fifo_exec (const char *text)
}
pos_msg[0] = '\0';
pos_msg += 2;
-
- pos_buffer = strchr (text2, '.');
- if (!pos_buffer)
- {
- weechat_printf (NULL,
- _("%s%s: error, invalid text received on pipe"),
- weechat_prefix ("error"), FIFO_PLUGIN_NAME);
- free (text2);
- return;
- }
- pos_buffer[0] = '\0';
- pos_buffer++;
-
- if (text2[0] && pos_buffer[0])
- ptr_buffer = weechat_buffer_search (text2, pos_buffer);
+ ptr_buffer = weechat_buffer_search ("==", text2);
}
if (!ptr_buffer)