mirror of
https://github.com/matrix-construct/construct
synced 2024-08-26 03:15:17 +02:00
modules: show descriptions in list
This commit is contained in:
parent
0eb7d9c02c
commit
2ab24be6f9
2 changed files with 4 additions and 4 deletions
|
@ -202,7 +202,7 @@
|
||||||
#define NUMERIC_STR_670 ":STARTTLS successful, proceed with TLS handshake"
|
#define NUMERIC_STR_670 ":STARTTLS successful, proceed with TLS handshake"
|
||||||
#define NUMERIC_STR_671 "%s :%s"
|
#define NUMERIC_STR_671 "%s :%s"
|
||||||
#define NUMERIC_STR_691 ":%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_703 ":%s 703 %s :End of /MODLIST."
|
||||||
#define NUMERIC_STR_704 ":%s 704 %s %s :%s"
|
#define NUMERIC_STR_704 ":%s 704 %s %s :%s"
|
||||||
#define NUMERIC_STR_705 ":%s 705 %s %s :%s"
|
#define NUMERIC_STR_705 ":%s 705 %s %s :%s"
|
||||||
|
|
|
@ -562,15 +562,15 @@ do_modlist(struct Client *source_p, const char *pattern)
|
||||||
me.name, source_p->name,
|
me.name, source_p->name,
|
||||||
modlist[i]->name,
|
modlist[i]->name,
|
||||||
(unsigned long)(uintptr_t)modlist[i]->address,
|
(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
|
else
|
||||||
{
|
{
|
||||||
sendto_one(source_p, form_str(RPL_MODLIST),
|
sendto_one(source_p, form_str(RPL_MODLIST),
|
||||||
me.name, source_p->name, modlist[i]->name,
|
me.name, source_p->name, modlist[i]->name,
|
||||||
(unsigned long)(uintptr_t)modlist[i]->address, modlist[i]->version,
|
(unsigned long)(uintptr_t)modlist[i]->address,
|
||||||
modlist[i]->core ? "(core)" : "");
|
modlist[i]->version, modlist[i]->description, modlist[i]->core ? " (core)" : "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue