From 2ab24be6f9859802dd3e0fa2eb54096fa37e639a Mon Sep 17 00:00:00 2001 From: Elizabeth Myers Date: Sun, 6 Mar 2016 17:26:30 -0600 Subject: [PATCH] modules: show descriptions in list --- include/messages.h | 2 +- ircd/modules.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/messages.h b/include/messages.h index 4f983d0b8..fa3ff1c33 100644 --- a/include/messages.h +++ b/include/messages.h @@ -202,7 +202,7 @@ #define NUMERIC_STR_670 ":STARTTLS successful, proceed with TLS handshake" #define NUMERIC_STR_671 "%s :%s" #define NUMERIC_STR_691 ":%s" -#define NUMERIC_STR_702 ":%s 702 %s %s 0x%lx %s %s" +#define NUMERIC_STR_702 ":%s 702 %s %s 0x%lx :[Version %s] [Description: %s]%s" #define NUMERIC_STR_703 ":%s 703 %s :End of /MODLIST." #define NUMERIC_STR_704 ":%s 704 %s %s :%s" #define NUMERIC_STR_705 ":%s 705 %s %s :%s" diff --git a/ircd/modules.c b/ircd/modules.c index 5a750d48c..5b00ed17b 100644 --- a/ircd/modules.c +++ b/ircd/modules.c @@ -562,15 +562,15 @@ do_modlist(struct Client *source_p, const char *pattern) me.name, source_p->name, modlist[i]->name, (unsigned long)(uintptr_t)modlist[i]->address, - modlist[i]->version, modlist[i]->core ? "(core)" : ""); + modlist[i]->version, modlist[i]->description, modlist[i]->core ? " (core)" : ""); } } else { sendto_one(source_p, form_str(RPL_MODLIST), me.name, source_p->name, modlist[i]->name, - (unsigned long)(uintptr_t)modlist[i]->address, modlist[i]->version, - modlist[i]->core ? "(core)" : ""); + (unsigned long)(uintptr_t)modlist[i]->address, + modlist[i]->version, modlist[i]->description, modlist[i]->core ? " (core)" : ""); } }