From 5c9f185af69f8f51eccc1f94c8b36343af920d85 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sat, 28 Dec 2019 22:28:39 -0800 Subject: [PATCH] Plugins: ignore autoload entries that begin with a # comment --- PBot/Plugins.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PBot/Plugins.pm b/PBot/Plugins.pm index 9795731e..dd79a521 100644 --- a/PBot/Plugins.pm +++ b/PBot/Plugins.pm @@ -66,8 +66,8 @@ sub autoload { $plugin = basename $plugin; $plugin =~ s/.pm$//; - # do not load plugins that begin with an underscore - next if $plugin =~ m/^_/; + # do not load plugins that begin with a comment + next if $plugin =~ m/^\s*#/; $plugin_count++ if $self->load($plugin, %conf) }