/** Intermud Man ..... Vladimar@Sandsoftime Dec 1993 */
#include <udp.h>
#define INETD "secure/inetd"
status iman (string str) {
string topic, mud;
if (!str || sscanf (str, "%s@%s", topic, mud) !=2) {
notify_fail ("Usage: iman <topic>@<mud>\n");
return 0;
}
if (INETD->send_udp(mud, ([
REQUEST : "man",
SENDER : (string)this_player()->query_name(1),
DATA : topic,
]), 1))
write ("Message transmitted.\n");
return 1;
}
void help() {
write ("Usage : iman <topic>@<mud>\n"+
"Send a request for a man page to another mud.\n");
}