netdups.c

skylib_fluffos_v3/mudlib/cmds/creator/netdups.c · 540 B

From the archive skylib_fluffos_v3.zip

Download the archive   « Back to the archive contents

#include <creator.h>
#include <peopler.h>

inherit COMMAND_BASE;

#define MULTIPLAYER "/handlers/multiplayer"

int cmd(string str) {
   mixed *bing;

   bing = this_player()->query_property("netdups list");
   if (!bing) {
      bing = ND_DEFAULT;
   }
   return PEOPLER->do_command(bing, str, (: strcmp(query_ip_number($1),
                                            query_ip_number($2)) :), 1);
} /* cmd() */

mixed *query_patterns() {
   return ({ "", (: cmd(0) :),
             "<word>", (: cmd($4[0]) :) });
} /* query_patterns() */

Site Stats

Snippets: 1791
Codebases: 571