diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2011-06-13 12:32:27 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2011-06-13 12:32:27 +0200 |
commit | c8b2a6a08485abfe6a8fb849b68ec574af8879e5 (patch) | |
tree | e7b5202773f259439d7f1cac1239ea464769768b /src/plugins/irc/irc-info.c | |
parent | 756252b95cb1b1988891c7a7525378c8feaa5f8e (diff) | |
download | weechat-c8b2a6a08485abfe6a8fb849b68ec574af8879e5.zip |
core: add "hdata" (direct access to WeeChat/plugin data)
Diffstat (limited to 'src/plugins/irc/irc-info.c')
-rw-r--r-- | src/plugins/irc/irc-info.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/plugins/irc/irc-info.c b/src/plugins/irc/irc-info.c index c4b173ffd..a482be480 100644 --- a/src/plugins/irc/irc-info.c +++ b/src/plugins/irc/irc-info.c @@ -18,7 +18,7 @@ */ /* - * irc-info.c: info and infolist hooks for IRC plugin + * irc-info.c: info, infolist and hdata hooks for IRC plugin */ #include <stdlib.h> @@ -34,6 +34,7 @@ #include "irc-nick.h" #include "irc-notify.h" #include "irc-protocol.h" +#include "irc-redirect.h" #include "irc-server.h" @@ -626,4 +627,22 @@ irc_info_init () N_("notify pointer (optional)"), N_("server name (can start or end with \"*\" as wildcard) (optional)"), &irc_info_get_infolist_cb, NULL); + + /* hdata hooks */ + weechat_hook_hdata ("irc_nick", N_("irc nick"), + &irc_nick_hdata_nick_cb, NULL); + weechat_hook_hdata ("irc_channel", N_("irc channel"), + &irc_channel_hdata_channel_cb, NULL); + weechat_hook_hdata ("irc_channel_speaking", N_("irc channel_speaking"), + &irc_channel_hdata_channel_speaking_cb, NULL); + weechat_hook_hdata ("irc_ignore", N_("irc ignore"), + &irc_ignore_hdata_ignore_cb, NULL); + weechat_hook_hdata ("irc_notify", N_("irc notify"), + &irc_notify_hdata_notify_cb, NULL); + weechat_hook_hdata ("irc_redirect_pattern", N_("pattern for irc redirect"), + &irc_redirect_hdata_redirect_pattern_cb, NULL); + weechat_hook_hdata ("irc_redirect", N_("irc redirect"), + &irc_redirect_hdata_redirect_cb, NULL); + weechat_hook_hdata ("irc_server", N_("irc server"), + &irc_server_hdata_server_cb, NULL); } |