diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-06-22 13:28:41 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-06-22 13:28:41 +0200 |
commit | 0f3db84269dc029aa00d706a9821ab00b7ed0c85 (patch) | |
tree | 65d7da1c5e6e733796ff63a899925e5273685c7c | |
parent | 7a43a5d87593a1f8ea06a5f32865e73b88c7afea (diff) |
core_userhost Show real host if the target is the same as the user doing the /USERHOST
-rw-r--r-- | src/coremods/core_userhost.cpp | 2 |
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 += ' '; } } |