modules: show descriptions in list

This commit is contained in:
Elizabeth Myers 2016-03-06 17:26:30 -06:00
parent 0eb7d9c02c
commit 2ab24be6f9
2 changed files with 4 additions and 4 deletions

View file

@ -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"

View file

@ -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)" : "");
}
}