summaryrefslogtreecommitdiff
path: root/src/coremods/core_userhost.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-06-22 13:28:41 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-06-22 13:28:41 +0200
commit0f3db84269dc029aa00d706a9821ab00b7ed0c85 (patch)
tree65d7da1c5e6e733796ff63a899925e5273685c7c /src/coremods/core_userhost.cpp
parent7a43a5d87593a1f8ea06a5f32865e73b88c7afea (diff)
core_userhost Show real host if the target is the same as the user doing the /USERHOST
Diffstat (limited to 'src/coremods/core_userhost.cpp')
-rw-r--r--src/coremods/core_userhost.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coremods/core_userhost.cpp b/src/coremods/core_userhost.cpp
index 9d4c9e8f7..1b34addb5 100644
--- a/src/coremods/core_userhost.cpp
+++ b/src/coremods/core_userhost.cpp
@@ -59,7 +59,7 @@ CmdResult CommandUserhost::Handle (const std::vector<std::string>& parameters, U
retbuf += (u->IsAway() ? '-' : '+');
retbuf += u->ident;
retbuf += '@';
- retbuf += (has_privs ? u->host : u->dhost);
+ retbuf += (((u == user) || (has_privs)) ? u->host : u->dhost);
retbuf += ' ';
}
}