rwho_a.c

final_realms_fluffos_v1/lib/net/old/udp/rwho_a.c · 579 B

From the archive final_realms_fluffos_v1.zip

Download the archive   « Back to the archive contents

#include "udp.h"
/*
 * They have answered our remote who question.
 */
void incoming_request(mapping info) {
  object ob;

  if (stringp(info["PORTUDP"]) && stringp(info["HOSTADDRESS"])) {
    if (info["NAME"] == mud_name())
      return ;
    if (!NAMESERVER_CD->query_mud_info(info["NAME"]))
      PING_Q->send_ping_q(info["HOSTADDRESS"], info["PORTUDP"]);
    if (!(ob = find_player(lower_case(info["ASKWIZ"]))))
      return ;
    tell_object(ob, "rwho@"+info["NAME"]+":\n"+info["RWHO"]);
  }
} /* incoming_request() */

void create() {
  seteuid(getuid());
} /* create() */

Site Stats

Snippets: 1791
Codebases: 571