From 0eb7d9c02ca5c12d8ffc4f9991c1e18aabfa8ea2 Mon Sep 17 00:00:00 2001 From: Elizabeth Myers Date: Sun, 6 Mar 2016 17:14:31 -0600 Subject: [PATCH] modules: add description field --- include/modules.h | 1 + ircd/modules.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/modules.h b/include/modules.h index 0976fc12..b4042d16 100644 --- a/include/modules.h +++ b/include/modules.h @@ -39,6 +39,7 @@ struct module { char *name; const char *version; + const char *description; lt_dlhandle address; int core; int mapi_version; diff --git a/ircd/modules.c b/ircd/modules.c index 8db03c36..5a750d48 100644 --- a/ircd/modules.c +++ b/ircd/modules.c @@ -967,6 +967,7 @@ load_a_module(const char *path, int warn, int core) modlist[num_mods] = rb_malloc(sizeof(struct module)); modlist[num_mods]->address = tmpptr; modlist[num_mods]->version = ver; + modlist[num_mods]->description = description; modlist[num_mods]->core = core; modlist[num_mods]->name = rb_strdup(mod_basename); modlist[num_mods]->mapi_header = mapi_version;