diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-08-22 21:34:29 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-08-22 21:34:29 +0200 |
commit | 74d595498dec1c0b6572d7381b2d13f2ad5322dc (patch) | |
tree | 845e4f24cca392c365b65b58cbaae89b9b102508 /src/plugins/irc | |
parent | 4185de52197ee9e94c0e4543510cbe94eb26b964 (diff) | |
download | weechat-74d595498dec1c0b6572d7381b2d13f2ad5322dc.zip |
Add hook infolist to plugins API, fix bugs with gettext in plugins
Diffstat (limited to 'src/plugins/irc')
-rw-r--r-- | src/plugins/irc/irc-command.c | 2 | ||||
-rw-r--r-- | src/plugins/irc/irc-config.c | 4 | ||||
-rw-r--r-- | src/plugins/irc/irc-server.c | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c index 2634f0e6a..5b06cc56f 100644 --- a/src/plugins/irc/irc-command.c +++ b/src/plugins/irc/irc-command.c @@ -2870,7 +2870,7 @@ irc_command_server (void *data, struct t_gui_buffer *buffer, int argc, if (mask) { snprintf (mask, length, "irc.server.%s.*", server_found->name); - infolist = weechat_infolist_get ("options", NULL, mask); + infolist = weechat_infolist_get ("option", NULL, mask); free (mask); while (weechat_infolist_next (infolist)) { diff --git a/src/plugins/irc/irc-config.c b/src/plugins/irc/irc-config.c index afe4300d5..24d05f9af 100644 --- a/src/plugins/irc/irc-config.c +++ b/src/plugins/irc/irc-config.c @@ -316,7 +316,7 @@ irc_config_server_delete_cb (void *data, struct t_config_option *option) { snprintf (mask, length, "irc.server.%s.*", ptr_server->name); - infolist = weechat_infolist_get ("options", NULL, mask); + infolist = weechat_infolist_get ("option", NULL, mask); i = 0; while (weechat_infolist_next (infolist)) { @@ -346,7 +346,7 @@ irc_config_reload_servers_from_config () char *full_name, *option_name, *server_name, *pos_option; int i, index_option; - infolist = weechat_infolist_get ("options", NULL, "irc.server.*"); + infolist = weechat_infolist_get ("option", NULL, "irc.server.*"); while (weechat_infolist_next (infolist)) { full_name = weechat_infolist_string (infolist, "full_name"); diff --git a/src/plugins/irc/irc-server.c b/src/plugins/irc/irc-server.c index 32895fc6f..e15df5393 100644 --- a/src/plugins/irc/irc-server.c +++ b/src/plugins/irc/irc-server.c @@ -885,7 +885,7 @@ irc_server_duplicate (struct t_irc_server *server, const char *new_server_name) if (!mask) return 0; snprintf (mask, length, "irc.server.%s.*", server->name); - infolist = weechat_infolist_get ("options", NULL, mask); + infolist = weechat_infolist_get ("option", NULL, mask); free (mask); while (weechat_infolist_next (infolist)) { @@ -944,7 +944,7 @@ irc_server_rename (struct t_irc_server *server, const char *new_server_name) if (!mask) return 0; snprintf (mask, length, "irc.server.%s.*", server->name); - infolist = weechat_infolist_get ("options", NULL, mask); + infolist = weechat_infolist_get ("option", NULL, mask); free (mask); while (weechat_infolist_next (infolist)) { |