]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/coremods/core_userhost.cpp
Change return type of Channel::GetUsers() to reference from pointer as it is never...
[user/henk/code/inspircd.git] / src / coremods / core_userhost.cpp
index 9d4c9e8f71b256bcd36faeecd9a6fbcaad4c0ea4..1b34addb509b93dc36878b6d14d57e03fe476150 100644 (file)
@@ -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 += ' ';
                }
        }