idle.c

dw_fluffos_v1/lib/cmds/player/idle.c · 364 B

From the archive dw_fluffos_v1.tar.gz

Download the archive   « Back to the archive contents

inherit "/cmds/base";

int cmd(object who) {
  if (!interactive(who))
    write(who->query_cap_name() + " is net-dead.\n");
  else
    write(who->query_cap_name() + " has been idle for " +
          "/secure/finger"->time_elapsed_string(query_idle(who)) + ".\n");
  return 1;
  
}

mixed *query_patterns() {
  return ({ "<indirect:player>", (: cmd($1[0]) :) });
}

Site Stats

Snippets: 1791
Codebases: 571