summaryrefslogtreecommitdiff
path: root/src/plugins/javascript/weechat-js.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/javascript/weechat-js.cpp')
-rw-r--r--src/plugins/javascript/weechat-js.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/javascript/weechat-js.cpp b/src/plugins/javascript/weechat-js.cpp
index 7c079af8f..75821b5cc 100644
--- a/src/plugins/javascript/weechat-js.cpp
+++ b/src/plugins/javascript/weechat-js.cpp
@@ -486,7 +486,7 @@ weechat_js_unload_name (const char *name)
{
struct t_plugin_script *ptr_script;
- ptr_script = plugin_script_search (weechat_js_plugin, js_scripts, name);
+ ptr_script = plugin_script_search (js_scripts, name);
if (ptr_script)
{
weechat_js_unload (ptr_script);
@@ -528,7 +528,7 @@ weechat_js_reload_name (const char *name)
struct t_plugin_script *ptr_script;
char *filename;
- ptr_script = plugin_script_search (weechat_js_plugin, js_scripts, name);
+ ptr_script = plugin_script_search (js_scripts, name);
if (ptr_script)
{
filename = strdup (ptr_script->filename);