Add 'map' to default operclass privileges so opers see ulines and the real map (not flat-map). Reported by blank ().

This commit is contained in:
Bram Matthys 2015-10-30 09:19:11 +01:00
parent cdbdd2dce0
commit e77ebaf26b
2 changed files with 5 additions and 1 deletions

View file

@ -34,6 +34,7 @@ operclass locop {
zline { local; };
};
trace { local; invisible-users; };
map;
};
};
@ -54,6 +55,7 @@ operclass globop {
trace;
who;
override { see; };
map;
};
};
@ -75,6 +77,7 @@ operclass admin {
trace;
who;
override { see; };
map;
};
};
@ -124,6 +127,7 @@ operclass netadmin {
samode;
servicebot { deop; kill; };
override { see; };
map;
};
};

View file

@ -79,7 +79,7 @@ CMD_FUNC(m_links)
list_for_each_entry(acptr, &global_server_list, client_node)
{
/* Some checks */
if (HIDE_ULINES && IsULine(acptr) && !IsOper(sptr))
if (HIDE_ULINES && IsULine(acptr) && !ValidatePermissionsForPath("map:ulines",cptr,NULL,NULL,NULL))
continue;
if (flat)
sendto_one(sptr, rpl_str(RPL_LINKS),