summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-02-08 19:49:35 +0100
committerSebastien Helleu <flashcode@flashtux.org>2009-02-08 19:49:35 +0100
commit2fce36c2aded643452c097ab184f31e9f8d90201 (patch)
treee003ff19403999fcab065cad5bfd4c0715400bbb
parentc683673047742fc8ece9193b4b774ecf367c6472 (diff)
downloadweechat-2fce36c2aded643452c097ab184f31e9f8d90201.zip
Add property "input" for function buffer_get_string in plugin API
-rw-r--r--src/gui/gui-buffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c
index 3846cf513..3e0d95485 100644
--- a/src/gui/gui-buffer.c
+++ b/src/gui/gui-buffer.c
@@ -560,6 +560,8 @@ gui_buffer_get_string (struct t_gui_buffer *buffer, const char *property)
return buffer->short_name;
else if (string_strcasecmp (property, "title") == 0)
return buffer->title;
+ else if (string_strcasecmp (property, "input") == 0)
+ return buffer->input_buffer;
else if (string_strncasecmp (property, "localvar_", 9) == 0)
{
ptr_local_var = gui_buffer_local_var_search (buffer, property + 9);