summaryrefslogtreecommitdiff
path: root/src/playerrelations.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-05-11 22:36:02 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-05-11 22:36:02 +0200
commit47b127b648939c0c0d7f1efaceca8d675dccf513 (patch)
tree6fd9a6064dcde3e838d7460b023d06892e066021 /src/playerrelations.cpp
parent502b4a462b8d90af75db043e9e180ba959c37583 (diff)
downloadmana-client-47b127b648939c0c0d7f1efaceca8d675dccf513.tar.gz
mana-client-47b127b648939c0c0d7f1efaceca8d675dccf513.tar.bz2
mana-client-47b127b648939c0c0d7f1efaceca8d675dccf513.tar.xz
mana-client-47b127b648939c0c0d7f1efaceca8d675dccf513.zip
Made player relations persistent by default and removed option from GUI
Also changed the config key to make sure the new default applies to everybody. It is now 'persistent-player-list' instead of 'persist-player-list'.
Diffstat (limited to 'src/playerrelations.cpp')
-rw-r--r--src/playerrelations.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/playerrelations.cpp b/src/playerrelations.cpp
index 4a431e2a..a14861ef 100644
--- a/src/playerrelations.cpp
+++ b/src/playerrelations.cpp
@@ -107,7 +107,7 @@ void PlayerRelationsManager::clear()
delete names;
}
-#define PERSIST_IGNORE_LIST "persist-player-list"
+#define PERSIST_IGNORE_LIST "persistent-player-list"
#define PLAYER_IGNORE_STRATEGY "player-ignore-strategy"
#define DEFAULT_PERMISSIONS "default-player-permissions"
@@ -125,7 +125,7 @@ void PlayerRelationsManager::load()
{
clear();
- mPersistIgnores = config.getValue(PERSIST_IGNORE_LIST, 0);
+ mPersistIgnores = config.getValue(PERSIST_IGNORE_LIST, 1);
mDefaultPermissions = (int) config.getValue(DEFAULT_PERMISSIONS, mDefaultPermissions);
std::string ignore_strategy_name = config.getValue(PLAYER_IGNORE_STRATEGY, DEFAULT_IGNORE_STRATEGY);
int ignore_strategy_index = getPlayerIgnoreStrategyIndex(ignore_strategy_name);