summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorDan Sagunov <danilka.pro@gmail.com>2013-11-04 14:06:06 +0400
committerDan Sagunov <danilka.pro@gmail.com>2013-11-04 14:06:06 +0400
commit25d33c793a85aa1f62fd2d03378e25078aaf410a (patch)
treeb2068b328011e93b98ac21f1c92aee17b5c268e2 /src/commands.cpp
parent61bc04f3a499c4ff856a37d161219d6de733d9d1 (diff)
parent2ba2b398bdee802ed8c09819562de0afb34a1229 (diff)
downloadmv-25d33c793a85aa1f62fd2d03378e25078aaf410a.tar.gz
mv-25d33c793a85aa1f62fd2d03378e25078aaf410a.tar.bz2
mv-25d33c793a85aa1f62fd2d03378e25078aaf410a.tar.xz
mv-25d33c793a85aa1f62fd2d03378e25078aaf410a.zip
Merge branch 'master' of gitorious.org:manaplus/manaplus
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)