aboutsummaryrefslogtreecommitdiff
path: root/src/player.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/player.cpp')
-rw-r--r--src/player.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/player.cpp b/src/player.cpp
index a6ddeee64..2ebf158a6 100644
--- a/src/player.cpp
+++ b/src/player.cpp
@@ -144,7 +144,16 @@ void Player::deSerialize(std::istream &is)
hp = 20;
}
try{
- privs = args.getU64("privs");
+ std::string sprivs = args.get("privs");
+ if(sprivs == "all")
+ {
+ privs = PRIV_ALL;
+ }
+ else
+ {
+ std::istringstream ss(sprivs);
+ ss>>privs;
+ }
}catch(SettingNotFoundException &e){
privs = PRIV_DEFAULT;
}