summaryrefslogtreecommitdiff
path: root/doc/en/weechat_plugin_api.en.txt
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-06-14 20:06:42 +0200
committerSebastien Helleu <flashcode@flashtux.org>2012-06-14 20:06:42 +0200
commitd66555f38741a58be200e881059abeb6eb428ed2 (patch)
tree378bc95954ccf640321a6c3d5d5bbdcb9d08f0b0 /doc/en/weechat_plugin_api.en.txt
parentb5082902b4152ce5416f31626622357f645e7268 (diff)
downloadweechat-d66555f38741a58be200e881059abeb6eb428ed2.zip
core: add callback "nickcmp" for nick comparison in buffers
Diffstat (limited to 'doc/en/weechat_plugin_api.en.txt')
-rw-r--r--doc/en/weechat_plugin_api.en.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/en/weechat_plugin_api.en.txt b/doc/en/weechat_plugin_api.en.txt
index 70386cb4a..e791cd709 100644
--- a/doc/en/weechat_plugin_api.en.txt
+++ b/doc/en/weechat_plugin_api.en.txt
@@ -9879,6 +9879,21 @@ Arguments:
** 'close_callback_data': set close callback data
** 'input_callback': set input callback function
** 'input_callback_data': set input callback data
+** 'nickcmp_callback': set nick comparison callback function (this callback is
+ called when searching nick in nicklist) (_new in version 0.3.9_)
+** 'nickcmp_callback_data': set nick comparison callback data
+ (_new in version 0.3.9_)
+
+Prototypes for callbacks:
+
+[source,C]
+----------------------------------------
+int close_callback (void *data, struct t_gui_buffer *buffer);
+
+int input_callback (void *data, struct t_gui_buffer *buffer, const char *input_data);
+
+int nickcmp_callback (void *data, struct t_gui_buffer *buffer, const char *nick1, const char *nick2);
+----------------------------------------
C example: