diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2013-11-09 10:21:46 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2013-11-09 10:21:46 +0100 |
commit | 786ad41309f288efdceec5ad04cbf55829dd0a3d (patch) | |
tree | d09c95f699749cd2fad788b118b356f56be01362 /src/plugins | |
parent | 8c7b9a1c5e216b2cda6add346e81b14a06f5a7be (diff) | |
download | weechat-786ad41309f288efdceec5ad04cbf55829dd0a3d.zip |
alias: remove unneeded warning, do not load plugin when options can not be initialized
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/alias/alias.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/plugins/alias/alias.c b/src/plugins/alias/alias.c index 3030a191e..f7ac57c91 100644 --- a/src/plugins/alias/alias.c +++ b/src/plugins/alias/alias.c @@ -979,12 +979,8 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[]) weechat_plugin = plugin; if (!alias_config_init ()) - { - weechat_printf (NULL, - _("%s%s: error creating configuration file"), - weechat_prefix("error"), ALIAS_PLUGIN_NAME); - return WEECHAT_RC_OK; - } + return WEECHAT_RC_ERROR; + alias_config_read (); weechat_hook_command ("alias", |