X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fm_whowas.c;h=adcaaeac2352a868e26ccfd072b964eea5381dff;hb=cc05a230ac079fa15a2e43e6e68ef7126128cefd;hp=2d8e9d1fad116588deaffbf34122c4271cdbaed9;hpb=b8294f6c0db86ec8d204b0fda51070f3a415fb57;p=ircu2.10.12-pk.git diff --git a/ircd/m_whowas.c b/ircd/m_whowas.c index 2d8e9d1..adcaaea 100644 --- a/ircd/m_whowas.c +++ b/ircd/m_whowas.c @@ -136,11 +136,12 @@ int m_whowas(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) if (0 == ircd_strcmp(nick, temp->name)) { send_reply(sptr, RPL_WHOWASUSER, temp->name, temp->username, + (IsAnOper(sptr) && temp->realhost) ? temp->realhost : temp->hostname, temp->realname); #ifdef HEAD_IN_SAND_WHOIS_SERVERNAME if (!IsOper(sptr)) - send_reply(sptr, RPL_WHOISSERVER, temp->name, "*.undernet.org", - myctime(temp->logoff)); + send_reply(sptr, RPL_WHOISSERVER, temp->name, + HEAD_IN_SAND_SERVERNAME, myctime(temp->logoff)); else #endif send_reply(sptr, RPL_WHOISSERVER, temp->name, temp->servername,