diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2013-11-09 10:23:30 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2013-11-09 10:23:30 +0100 |
commit | 91f76dc771ba22b685ad280c4dcda1f576e147cd (patch) | |
tree | bbd124013740f215938db309582962be469623ab | |
parent | a349af5356f01e82a70611dcc2e98e0ea5e7782c (diff) | |
download | weechat-91f76dc771ba22b685ad280c4dcda1f576e147cd.zip |
charset: remove unneeded warning, do not load plugin when options can not be initialized
-rw-r--r-- | src/plugins/charset/charset.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/plugins/charset/charset.c b/src/plugins/charset/charset.c index 1c054232e..44af25d6d 100644 --- a/src/plugins/charset/charset.c +++ b/src/plugins/charset/charset.c @@ -579,12 +579,8 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[]) charset_display_charsets (); if (!charset_config_init ()) - { - weechat_printf (NULL, - _("%s%s: error creating configuration file"), - weechat_prefix("error"), CHARSET_PLUGIN_NAME); - return WEECHAT_RC_OK; - } + return WEECHAT_RC_ERROR; + charset_config_read (); /* /charset command */ |