Skip to content
Permalink
Browse files

Modify module version check to not prevent newer versions from running

* Modify module version check to not prevent newer versions from running
* Update version strings to 1.9
  • Loading branch information...
vanosg committed Jun 25, 2019
1 parent 418d8e3 commit a268c32caf3f184678ed8fe6e2c83240a3ce267d
Showing with 5 additions and 4 deletions.
  1. +3 −2 src/modules.c
  2. +2 −2 src/version.h
@@ -892,11 +892,12 @@ module_entry *module_find(char *name, int major, int minor)
module_entry *p;

for (p = module_list; p && p->name; p = p->next) {
if ((major == p->major || !major) && minor <= p->minor &&
!egg_strcasecmp(name, p->name))
if ( (((major < p->major) || !major) || ((major == p->major) &&
(minor <= p->minor))) && !egg_strcasecmp(name, p->name) )
return p;
}
return NULL;

}

static int module_rename(char *name, char *newname)
@@ -26,6 +26,6 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

#define EGG_STRINGVER "1.8.4"
#define EGG_NUMVER 1080405
#define EGG_STRINGVER "1.9.0"
#define EGG_NUMVER 1090000
#define EGG_PATCH "base"

0 comments on commit a268c32

Please sign in to comment.
You can’t perform that action at this time.