summaryrefslogtreecommitdiff
path: root/src/servercommand.cpp
diff options
context:
space:
mode:
authorCiaran Gultnieks <ciaran@ciarang.com>2011-05-16 16:13:17 +0100
committerCiaran Gultnieks <ciaran@ciarang.com>2011-05-16 16:13:17 +0100
commit1520d49310c07b1f8500582b6ac22baedcc80dcb (patch)
tree8680ffa419295ce560f6841ee1e097bd342cc95c /src/servercommand.cpp
parent7cdd988f88ae3fc5b1ca342c3c5e176eec0ba8f9 (diff)
downloadminetest-1520d49310c07b1f8500582b6ac22baedcc80dcb.tar.gz
minetest-1520d49310c07b1f8500582b6ac22baedcc80dcb.tar.bz2
minetest-1520d49310c07b1f8500582b6ac22baedcc80dcb.zip
Privileges to/from string conversion functions standalone, not static members
Diffstat (limited to 'src/servercommand.cpp')
-rw-r--r--src/servercommand.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/servercommand.cpp b/src/servercommand.cpp
index fa841a1bb..21483b548 100644
--- a/src/servercommand.cpp
+++ b/src/servercommand.cpp
@@ -93,7 +93,7 @@ void ServerCommand::cmd_privs(std::wostringstream &os,
{
if(ctx->parms.size() == 1)
{
- os<<L"-!- " + Player::privsToString(ctx->player->privs);
+ os<<L"-!- " + privsToString(ctx->player->privs);
return;
}
@@ -110,7 +110,7 @@ void ServerCommand::cmd_privs(std::wostringstream &os,
return;
}
- os<<L"-!- " + Player::privsToString(tp->privs);
+ os<<L"-!- " + privsToString(tp->privs);
}
void ServerCommand::cmd_grantrevoke(std::wostringstream &os,
@@ -128,7 +128,7 @@ void ServerCommand::cmd_grantrevoke(std::wostringstream &os,
return;
}
- u64 newprivs = Player::stringToPrivs(ctx->parms[2]);
+ u64 newprivs = stringToPrivs(ctx->parms[2]);
if(newprivs == PRIV_INVALID)
{
os<<L"-!- Invalid privileges specified";
@@ -148,7 +148,7 @@ void ServerCommand::cmd_grantrevoke(std::wostringstream &os,
tp->privs &= ~newprivs;
os<<L"-!- Privileges change to ";
- os<<Player::privsToString(tp->privs);
+ os<<privsToString(tp->privs);
}
void ServerCommand::cmd_time(std::wostringstream &os,