summaryrefslogtreecommitdiff
path: root/src/plugins/scripts/perl/weechat-perl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/scripts/perl/weechat-perl.h')
-rw-r--r--src/plugins/scripts/perl/weechat-perl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/scripts/perl/weechat-perl.h b/src/plugins/scripts/perl/weechat-perl.h
index 23c9deccf..4d0626617 100644
--- a/src/plugins/scripts/perl/weechat-perl.h
+++ b/src/plugins/scripts/perl/weechat-perl.h
@@ -23,6 +23,8 @@
#define weechat_plugin weechat_perl_plugin
#define PERL_PLUGIN_NAME "perl"
+#define PERL_CURRENT_SCRIPT_NAME ((perl_current_script) ? perl_current_script->name : "-")
+
extern struct t_weechat_plugin *weechat_perl_plugin;
extern int perl_quiet;