who.c

final_realms_fluffos_v1/lib/net/gopher/who.c · 469 B

From the archive final_realms_fluffos_v1.zip

Download the archive   « Back to the archive contents

#include "gopher.h"

int query_type() { return '1'; }

string do_gopher() {
  object *obs;
  int i;
  string ret;

  obs = users();
  ret = "";
  for (i=0;i<sizeof(obs);i++) {
    if (!obs[i]->query_name() && !obs[i]->query_invis()) continue;
    ret += "0"+obs[i]->query_cap_name()+"\t0:exec:/finger_person:"+
           obs[i]->query_name()+"\t"+MACHINE_NAME+"\t"+GOPHER_PORT+"\n";
  }
  return ret;
  return (string)"/command/who"->who_string();
} /* do_gopher() */

Site Stats

Snippets: 1791
Codebases: 571