diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2017-12-23 19:48:59 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2017-12-23 19:48:59 +0100 |
commit | d7122cd6be8095d31a93e30e361ff1bcb31811bc (patch) | |
tree | 4d2bfe28a10337fd8616d7e238df715a879dd9e9 | |
parent | 87be29ed3dd5371961ae730556e6b51875c0c8f1 (diff) | |
download | weechat-d7122cd6be8095d31a93e30e361ff1bcb31811bc.zip |
javascript: fix /javascript command
-rw-r--r-- | src/plugins/javascript/weechat-js.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/javascript/weechat-js.cpp b/src/plugins/javascript/weechat-js.cpp index 90f815622..d2c2c0dc7 100644 --- a/src/plugins/javascript/weechat-js.cpp +++ b/src/plugins/javascript/weechat-js.cpp @@ -553,10 +553,12 @@ weechat_js_command_cb (const void *pointer, void *data, weechat_js_unload_all (); plugin_script_auto_load (weechat_js_plugin, &weechat_js_load_cb); } - else if (weechat_strcasecmp(argv[1], "unload")) + else if (weechat_strcasecmp(argv[1], "unload") == 0) { weechat_js_unload_all (); } + else + WEECHAT_COMMAND_ERROR; } else { |