1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-23 03:16:37 +02:00

javascript: fix /javascript command

This commit is contained in:
Sébastien Helleu
2017-12-23 19:48:59 +01:00
parent 87be29ed3d
commit d7122cd6be
+3 -1
View File
@@ -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
{