diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-11-04 12:50:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-11-04 12:50:28 +0300 |
commit | 2ba2b398bdee802ed8c09819562de0afb34a1229 (patch) | |
tree | a5426fa3960b6a4dc92d351aa93f886672c176f8 /src/commands.cpp | |
parent | 71d4ccedddfb7bdafd7b05bbb669d71164a4dc37 (diff) | |
download | mv-2ba2b398bdee802ed8c09819562de0afb34a1229.tar.gz mv-2ba2b398bdee802ed8c09819562de0afb34a1229.tar.bz2 mv-2ba2b398bdee802ed8c09819562de0afb34a1229.tar.xz mv-2ba2b398bdee802ed8c09819562de0afb34a1229.zip |
Add option for features.xml for allow/not allow follow.
New option: allowFollow
default value is 1.
Diffstat (limited to 'src/commands.cpp')
-rw-r--r-- | src/commands.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/commands.cpp b/src/commands.cpp index 551aa9943..75347a9aa 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -743,6 +743,9 @@ impHandler(follow) if (!player_node) return; + if (!features.getBoolValue("allowFollow")) + return; + if (!args.empty()) player_node->setFollow(args); else if (tab && tab->getType() == ChatTab::TAB_WHISPER) |