X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fm_whois.c;h=79a7205deb9865f2af543bcea53ba7c32badce0a;hb=cc05a230ac079fa15a2e43e6e68ef7126128cefd;hp=20835b5d25e3687e6ece96989fd9bb1be4089a56;hpb=b8294f6c0db86ec8d204b0fda51070f3a415fb57;p=ircu2.10.12-pk.git diff --git a/ircd/m_whois.c b/ircd/m_whois.c index 20835b5..79a7205 100644 --- a/ircd/m_whois.c +++ b/ircd/m_whois.c @@ -200,6 +200,13 @@ static void do_whois(struct Client* sptr, struct Client *acptr, int parc) if (IsAnOper(acptr) && (HasPriv(acptr, PRIV_DISPLAY) || HasPriv(sptr, PRIV_SEE_OPERS))) send_reply(sptr, RPL_WHOISOPERATOR, name); + + if (IsAccount(acptr)) + send_reply(sptr, RPL_WHOISACCOUNT, name, user->account); + + if (HasHiddenHost(acptr) && IsAnOper(sptr)) + send_reply(sptr, RPL_WHOISACTUALLY, name, user->username, + user->realhost, ircd_ntoa((const char*) &(cli_ip(acptr)))); /* Hint: if your looking to add more flags to a user, eg +h, here's * probably a good place to add them :)