From b7d6da07b07a610309d2ac64dba2bdd64477ec73 Mon Sep 17 00:00:00 2001 From: Elijah Perrault Date: Wed, 23 Feb 2011 14:27:29 -0700 Subject: [PATCH] Accept alpha6 modules. --- lib/API/Std.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.'); }