Author: Kev <klmitch@mit.edu>
[ircu2.10.12-pk.git] / ircd / m_whowas.c
index 2b8faed92434c95211ec93826304285d9d3b6e8e..8090d0fdbebb420e48a559c06e372a777515e5c8 100644 (file)
@@ -92,6 +92,7 @@
 #include "client.h"
 #include "hash.h"
 #include "ircd.h"
+#include "ircd_policy.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msg.h"
@@ -144,8 +145,14 @@ int m_whowas(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
       {
        send_reply(sptr, RPL_WHOWASUSER, temp->name, temp->username,
                   temp->hostname, temp->realname);
-       send_reply(sptr, RPL_WHOISSERVER, temp->name, temp->servername,
-                  myctime(temp->logoff));
+#ifdef HEAD_IN_SAND_WHOIS_SERVERNAME
+       if (!IsOper(sptr))
+         send_reply(sptr, RPL_WHOISSERVER, temp->name, "*.undernet.org",
+                    myctime(temp->logoff));
+       else
+#endif
+         send_reply(sptr, RPL_WHOISSERVER, temp->name, temp->servername,
+                    myctime(temp->logoff));
         if (temp->away)
          send_reply(sptr, RPL_AWAY, temp->name, temp->away);
         cur++;