X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/ea90b321a4b3768028d841b307c362af97a5e6e1..39330628e8c0719660d6adaf6171b855f69513e7:/plugins.php diff --git a/plugins.php b/plugins.php index c080e1b..225d144 100644 --- a/plugins.php +++ b/plugins.php @@ -1,5 +1,5 @@ name,$name) && (!$version || ($version >= $p->version))) + if (!strcmp($p->name,$name) && (!$version || ($version >= $p->version))) return true; return false; @@ -119,8 +119,6 @@ function require_plugin($name, $version) die("Missing plugin: $name v$version"); } - - /* I'm not a fan of globals */ class AuthModLoaded { @@ -130,4 +128,4 @@ class AuthModLoaded function is_auth_provided() { return AuthModLoaded::$status; -} \ No newline at end of file +}