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:
+5
-4
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user