summaryrefslogtreecommitdiff
path: root/plugins/cleanowned.cpp
diff options
context:
space:
mode:
authorQuietust2012-01-27 21:36:01 -0600
committerQuietust2012-01-27 21:36:01 -0600
commit116e5d60be2c52930a6447ec7e76c8f7807fe261 (patch)
tree6c83d3b3a95e5f7bf665d2937820a6a784a4f992 /plugins/cleanowned.cpp
parent331be2c821a01ae4e49cac538c13936af085a03a (diff)
downloaddfhack-116e5d60be2c52930a6447ec7e76c8f7807fe261.tar.gz
dfhack-116e5d60be2c52930a6447ec7e76c8f7807fe261.tar.bz2
dfhack-116e5d60be2c52930a6447ec7e76c8f7807fe261.tar.xz
Update Translation::TranslateName to include the first name, plus have it follow the init setting for nickname display (in Dwarf mode)
Diffstat (limited to 'plugins/cleanowned.cpp')
-rw-r--r--plugins/cleanowned.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/plugins/cleanowned.cpp b/plugins/cleanowned.cpp
index 911f23c9..2cc21371 100644
--- a/plugins/cleanowned.cpp
+++ b/plugins/cleanowned.cpp
@@ -184,14 +184,7 @@ DFhackCExport command_result df_cleanowned (Core * c, vector <string> & paramete
std::string info;
if (owner)
- {
- info = owner->name.first_name;
- if (!owner->name.nickname.empty())
- info += std::string(" '") + owner->name.nickname + "'";
- info += " ";
- info += Translation::TranslateName(&owner->name,false);
- c->con.print(", owner %s", info.c_str());
- }
+ c->con.print(", owner %s", Translation::TranslateName(&owner->name,false).c_str());
if (!dry_run)
{