/** Constructor for userhost.
*/
CommandUserhost ( Module* parent) : Command(parent,"USERHOST", 1, 5) {
- syntax = "<nick> {<nick>}";
+ syntax = "<nick> [<nick> ...]";
}
/** Handle command.
* @param parameters The parameters to the command
retbuf += (u->IsAway() ? '-' : '+');
retbuf += u->ident;
retbuf += '@';
- retbuf += (has_privs ? u->host : u->dhost);
+ retbuf += (((u == user) || (has_privs)) ? u->host : u->dhost);
retbuf += ' ';
}
}