summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp3
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)