X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcoremods%2Fcore_userhost.cpp;h=a6782419496a0710f13bc8480a4248d7e07c87d7;hb=47dda4f61512f6047f2b1dcccd1943aab74726e3;hp=9d4c9e8f71b256bcd36faeecd9a6fbcaad4c0ea4;hpb=7a43a5d87593a1f8ea06a5f32865e73b88c7afea;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/coremods/core_userhost.cpp b/src/coremods/core_userhost.cpp index 9d4c9e8f7..a67824194 100644 --- a/src/coremods/core_userhost.cpp +++ b/src/coremods/core_userhost.cpp @@ -28,7 +28,7 @@ class CommandUserhost : public Command /** Constructor for userhost. */ CommandUserhost ( Module* parent) : Command(parent,"USERHOST", 1, 5) { - syntax = " {}"; + syntax = " [ ...]"; } /** Handle command. * @param parameters The parameters to the command @@ -59,7 +59,7 @@ CmdResult CommandUserhost::Handle (const std::vector& 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 += ' '; } }