diff --git a/lib/API/Std.pm b/lib/API/Std.pm index 2f33b8c..2be744a 100644 --- a/lib/API/Std.pm +++ b/lib/API/Std.pm @@ -26,7 +26,7 @@ sub mod_init if (keys %Auto::SOCKET) { API::Log::slog('MODULES: Attempting to load '.$name.' (version '.$version.') by '.$author.'...'); } # Check if this module is compatible with this version of Auto. - if ($autover ne '3.0.0a4' and $autover ne '3.0.0a5') { + if ($autover !~ m/^3\.0\.0a(4|5|6)$/xsm) { API::Log::dbug('MODULES: Failed to load '.$name.': Incompatible with your version of Auto.'); API::Log::alog('MODULES: Failed to load '.$name.': Incompatible with your version of Auto.'); if (keys %Auto::SOCKET) { API::Log::slog('MODULES: Failed to load '.$name.': Incompatible with your version of Auto.'); }