summaryrefslogtreecommitdiff
path: root/src/actions/actions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions/actions.cpp')
-rw-r--r--src/actions/actions.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp
index a7289e300..270230463 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -1725,16 +1725,24 @@ impHandler(seen)
if (!actorManager)
return false;
- const std::string name = event.args;
- if (name.empty())
- return false;
-
ChatTab *tab = event.tab;
if (!tab)
tab = localChatTab;
if (!tab)
return false;
+ if (config.getBoolValue("enableIdCollecting") == false)
+ {
+ tab->chatLog(_("Last seen disabled. "
+ "Enable in players / collect players id and seen log."),
+ ChatMsgType::BY_SERVER);
+ return true;
+ }
+
+ const std::string name = event.args;
+ if (name.empty())
+ return false;
+
std::string dir = settings.usersDir;
dir.append(stringToHexPath(name)).append("/seen.txt");
if (Files::existsLocal(dir))