X-Git-Url: https://jfr.im/git/irc/quakenet/snircd.git/blobdiff_plain/943fcf700b096913f45f26fc5af52e8470c2257e..6a3f49db93e9aabe12849158a20e6b42cabd6155:/ircd/m_whois.c diff --git a/ircd/m_whois.c b/ircd/m_whois.c index fec4b53..8a2a430 100644 --- a/ircd/m_whois.c +++ b/ircd/m_whois.c @@ -211,10 +211,13 @@ static void do_whois(struct Client* sptr, struct Client *acptr, int parc) if (IsAccount(acptr)) send_reply(sptr, RPL_WHOISACCOUNT, name, user->account); - if (HasHiddenHost(acptr) && (IsAnOper(sptr) || acptr == sptr)) - send_reply(sptr, RPL_WHOISACTUALLY, name, user->username, + if ((HasHiddenHost(acptr) || HasSetHost(acptr)) && (IsAnOper(sptr) || acptr == sptr)) + send_reply(sptr, RPL_WHOISACTUALLY, name, user->realusername, user->realhost, ircd_ntoa(&cli_ip(acptr))); + if (!IsAnOper(sptr) && IsParanoid(acptr) && IsAnOper(acptr)) + sendcmdto_one(&me, CMD_NOTICE, acptr, "%C :whois: %s performed a /WHOIS on you.", acptr, cli_name(sptr)); + /* Hint: if your looking to add more flags to a user, eg +h, here's * probably a good place to add them :) */