support_a.c
final_realms_fluffos_v1/lib/net/old/udp/support_a.c · 791 B
From the archive final_realms_fluffos_v1.zip
Download the archive « Back to the archive contents
#include "udp.h"
/*
* They answered our do you support xx request.
*/
void incoming_request(mapping info) {
object ob;
if (stringp(info["PORTUDP"]) && stringp(info["NAME"])) {
if (info["NAME"] == mud_name())
return ;
if (!NAMESERVER_CD->query_mud_info(info["NAME"]))
PING_Q->send_ping_q(info["HOSTADDRESS"], info["PORTUDP"]);
ob = find_player(info["ANSWERID"]);
if (info["SUPPORTED"])
tell_object(ob, info["NAME"]+ " supports "+info["CMD"]+
((info["PARAM"])?"("+info["PARAM"]+")":"")+"\n");
else
tell_object(ob, info["NAME"]+ " does not support "+info["CMD"]+
((info["PARAM"])?"("+info["PARAM"]+")":"")+"\n");
}
} /* incoming_request() */
void create() {
seteuid(getuid());
} /* create() */