Ejemplo n.º 1
0
void
script_info_init ()
{
    /* infolist hooks */
    weechat_hook_infolist (
        "script_script",
        N_("list of scripts"),
        N_("script pointer (optional)"),
        N_("script name with extension "
           "(wildcard \"*\" is allowed) (optional)"),
        &script_info_infolist_script_script_cb, NULL, NULL);

    /* hdata hooks */
    weechat_hook_hdata (
        "script_script", N_("scripts from repository"),
        &script_repo_hdata_script_cb, NULL, NULL);
}
Ejemplo n.º 2
0
void
fset_info_init ()
{
    /* infolist hooks */
    weechat_hook_infolist (
        "fset_option",
        N_("list of fset options"),
        N_("fset option pointer (optional)"),
        N_("option name "
           "(wildcard \"*\" is allowed) (optional)"),
        &fset_info_infolist_fset_option_cb, NULL, NULL);

    /* hdata hooks */
    weechat_hook_hdata (
        "fset_option", N_("fset options"),
        &fset_option_hdata_option_cb, NULL, NULL);
}
Ejemplo n.º 3
0
void
irc_info_init ()
{
    /* info hooks */
    weechat_hook_info ("irc_is_channel",
                       N_("1 if string is a valid IRC channel name for server"),
                       N_("server,channel (server is optional)"),
                       &irc_info_get_info_cb, NULL);
    weechat_hook_info ("irc_is_nick",
                       N_("1 if string is a valid IRC nick name"),
                       N_("nickname"),
                       &irc_info_get_info_cb, NULL);
    weechat_hook_info ("irc_nick",
                       N_("get current nick on a server"),
                       N_("server name"),
                       &irc_info_get_info_cb, NULL);
    weechat_hook_info ("irc_nick_from_host",
                       N_("get nick from IRC host"),
                       N_("IRC host (like `:[email protected]`)"),
                       &irc_info_get_info_cb, NULL);
    weechat_hook_info ("irc_nick_color",
                       N_("get nick color code"),
                       N_("nickname"),
                       &irc_info_get_info_cb, NULL);
    weechat_hook_info ("irc_nick_color_name",
                       N_("get nick color name"),
                       N_("nickname"),
                       &irc_info_get_info_cb, NULL);
    weechat_hook_info ("irc_buffer",
                       N_("get buffer pointer for an IRC server/channel/nick"),
                       N_("server,channel,nick (channel and nicks are optional)"),
                       &irc_info_get_info_cb, NULL);
    weechat_hook_info ("irc_server_isupport",
                       N_("1 if server supports this feature (from IRC message 005)"),
                       N_("server,feature"),
                       &irc_info_get_info_cb, NULL);
    weechat_hook_info ("irc_server_isupport_value",
                       N_("value of feature, if supported by server (from IRC message 005)"),
                       N_("server,feature"),
                       &irc_info_get_info_cb, NULL);

    /* info_hashtable hooks */
    weechat_hook_info_hashtable ("irc_message_parse",
                                 N_("parse an IRC message"),
                                 N_("\"message\": IRC message, "
                                    "\"server\": server name (optional)"),
                                 /* TRANSLATORS: please do not translate key names (enclosed by quotes) */
                                 N_("\"nick\": nick, \"host\": host, "
                                    "\"command\": command, \"channel\": channel, "
                                    "\"arguments\": arguments (includes channel)"),
                                 &irc_info_get_info_hashtable_cb, NULL);
    weechat_hook_info_hashtable ("irc_message_split",
                                 N_("split an IRC message (to fit in 512 bytes)"),
                                 N_("\"message\": IRC message, "
                                    "\"server\": server name (optional)"),
                                 /* TRANSLATORS: please do not translate key names (enclosed by quotes) */
                                 N_("\"msg1\" ... \"msgN\": messages to send "
                                    "(without final \"\\r\\n\"), "
                                    "\"args1\" ... \"argsN\": arguments of "
                                    "messages, "
                                    "\"count\": number of messages"),
                                 &irc_info_get_info_hashtable_cb, NULL);

    /* infolist hooks */
    weechat_hook_infolist ("irc_server",
                           N_("list of IRC servers"),
                           N_("server pointer (optional)"),
                           N_("server name (can start or end with \"*\" as wildcard) (optional)"),
                           &irc_info_get_infolist_cb, NULL);
    weechat_hook_infolist ("irc_channel",
                           N_("list of channels for an IRC server"),
                           N_("channel pointer (optional)"),
                           N_("server,channel (channel is optional)"),
                           &irc_info_get_infolist_cb, NULL);
    weechat_hook_infolist ("irc_nick",
                           N_("list of nicks for an IRC channel"),
                           N_("nick pointer (optional)"),
                           N_("server,channel,nick (channel and nick are optional)"),
                           &irc_info_get_infolist_cb, NULL);
    weechat_hook_infolist ("irc_ignore",
                           N_("list of IRC ignores"),
                           N_("ignore pointer (optional)"),
                           NULL,
                           &irc_info_get_infolist_cb, NULL);
    weechat_hook_infolist ("irc_notify",
                           N_("list of notify"),
                           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);
}