1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 08:35:20 +02:00

Added 'shout' player privilege

This commit is contained in:
Ciaran Gultnieks
2011-05-23 20:40:25 +01:00
parent a9940c2ccf
commit 8bbc512fe5
3 changed files with 35 additions and 20 deletions

View File

@@ -36,6 +36,8 @@ std::wstring privsToString(u64 privs)
os<<L"settime,";
if(privs & PRIV_PRIVS)
os<<L"privs,";
if(privs & PRIV_SHOUT)
os<<L"shout,";
if(os.tellp())
{
// Drop the trailing comma. (Why on earth can't
@@ -65,6 +67,8 @@ u64 stringToPrivs(std::wstring str)
privs |= PRIV_SETTIME;
else if(*i == L"privs")
privs |= PRIV_PRIVS;
else if(*i == L"shout")
privs |= PRIV_SHOUT;
else
return PRIV_INVALID;
}