diff options
-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 += ' '; } } |