summaryrefslogtreecommitdiff
path: root/src/plugins/perl/weechat-perl-api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/perl/weechat-perl-api.c')
-rw-r--r--src/plugins/perl/weechat-perl-api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/perl/weechat-perl-api.c b/src/plugins/perl/weechat-perl-api.c
index b06d20953..b8b0dac13 100644
--- a/src/plugins/perl/weechat-perl-api.c
+++ b/src/plugins/perl/weechat-perl-api.c
@@ -133,7 +133,7 @@ API_FUNC(register)
shutdown_func = SvPV_nolen (ST (5));
charset = SvPV_nolen (ST (6));
- if (plugin_script_search (weechat_perl_plugin, perl_scripts, name))
+ if (plugin_script_search (perl_scripts, name))
{
/* another script already exists with same name */
weechat_printf (NULL,