3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-26 22:09:26 +01:00

Plugins: ignore autoload entries that begin with a # comment

This commit is contained in:
Pragmatic Software 2019-12-28 22:28:39 -08:00
parent b35c6a0143
commit 5c9f185af6

View File

@ -66,8 +66,8 @@ sub autoload {
$plugin = basename $plugin; $plugin = basename $plugin;
$plugin =~ s/.pm$//; $plugin =~ s/.pm$//;
# do not load plugins that begin with an underscore # do not load plugins that begin with a comment
next if $plugin =~ m/^_/; next if $plugin =~ m/^\s*#/;
$plugin_count++ if $self->load($plugin, %conf) $plugin_count++ if $self->load($plugin, %conf)
} }