sne_tstat.c

skylib_fluffos_v3/mudlib/cmds/creator/sne_tstat.c · 560 B

From the archive skylib_fluffos_v3.zip

Download the archive   « Back to the archive contents

/* goto command, trial out by Turrican for a commands daemon. */
inherit COMMAND_BASE;

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

mixed cmd(string str) {
   mixed *bing;

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

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

Site Stats

Snippets: 1791
Codebases: 571