# HG changeset patch # User Myhailo Danylenko # Date 1342960170 -10800 # Node ID 21680d75d561986ac97c729bc89a626bf79e8789 # Parent c20954910faea0588ddcd419f131b7ac7f27eb87 Use build-time api version diff -r c20954910fae -r 21680d75d561 env.c --- a/env.c Thu Jun 30 16:10:40 2011 +0300 +++ b/env.c Sun Jul 22 15:29:30 2012 +0300 @@ -37,9 +37,9 @@ #define DESCRIPTION ( "Some debugging routines\nProvides commands /env and /cd" ) -static module_info_t info_env_dev = { - .branch = "dev", - .api = 20, +module_info_t info_env = { + .branch = MCABBER_BRANCH, + .api = MCABBER_API_VERSION, .version = PROJECT_VERSION, .description = DESCRIPTION, .requires = NULL, @@ -48,17 +48,6 @@ .next = NULL, }; -module_info_t info_env = { - .branch = "0.10.1", - .api = 1, - .version = PROJECT_VERSION, - .description = DESCRIPTION, - .requires = NULL, - .init = env_load, - .uninit = env_unload, - .next = &info_env_dev, -}; - #ifdef MCABBER_API_HAVE_CMD_ID static gpointer env_env_cmid = NULL; static gpointer env_cd_cmid = NULL;