1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-29 19:06:38 +02:00

Hide serveropts from normal users.

This commit is contained in:
i
2019-07-12 01:09:33 +03:00
parent ca094f0a75
commit 006b7e5a7c
+5 -4
View File
@@ -167,10 +167,11 @@ CMD_FUNC(m_version)
if (hunt_server(cptr, sptr, recv_mtags, ":%s VERSION :%s", 1, parc, parv) == HUNTED_ISME)
{
sendnumeric(sptr, RPL_VERSION, version, debugmode, me.name,
serveropts, extraflags ? extraflags : "",
tainted ? "3" : "",
(ValidatePermissionsForPath("server:info",sptr,NULL,NULL,NULL) ? MYOSNAME : "*"),
UnrealProtocol);
(ValidatePermissionsForPath("server:info",sptr,NULL,NULL,NULL) ? serveropts : "0"),
extraflags ? extraflags : "",
tainted ? "3" : "",
(ValidatePermissionsForPath("server:info",sptr,NULL,NULL,NULL) ? MYOSNAME : "*"),
UnrealProtocol);
if (ValidatePermissionsForPath("server:info",sptr,NULL,NULL,NULL))
{
sendnotice(sptr, "%s", SSLeay_version(SSLEAY_VERSION));