From 932988af4650cdd844669d4cd238907409413db6 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Fri, 2 Dec 2011 12:18:19 +0200 Subject: Rename "build" privilege to "interact" (backwards-compatibly, of course) --- src/auth.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/auth.cpp') diff --git a/src/auth.cpp b/src/auth.cpp index 9920e0e40..7326a6042 100644 --- a/src/auth.cpp +++ b/src/auth.cpp @@ -28,8 +28,8 @@ with this program; if not, write to the Free Software Foundation, Inc., std::set privsToSet(u64 privs) { std::set s; - if(privs & PRIV_BUILD) - s.insert("build"); + if(privs & PRIV_INTERACT) + s.insert("interact"); if(privs & PRIV_TELEPORT) s.insert("teleport"); if(privs & PRIV_SETTIME) @@ -52,8 +52,8 @@ std::set privsToSet(u64 privs) std::string privsToString(u64 privs) { std::ostringstream os(std::ios_base::binary); - if(privs & PRIV_BUILD) - os<<"build,"; + if(privs & PRIV_INTERACT) + os<<"interact,"; if(privs & PRIV_TELEPORT) os<<"teleport,"; if(privs & PRIV_SETTIME) @@ -89,7 +89,9 @@ u64 stringToPrivs(std::string str) { std::string s = trim(f.next(",")); if(s == "build") - privs |= PRIV_BUILD; + privs |= PRIV_INTERACT; + else if(s == "interact") + privs |= PRIV_INTERACT; else if(s == "teleport") privs |= PRIV_TELEPORT; else if(s == "settime") -- cgit v1.2.3