who.c

MudOS_0.9.18/mudlib/lil/command/who.c · 407 B

From the archive MudOS_0.9.18.tar.gz

Download the archive   « Back to the archive contents

#include <command.h>

int
main(string arg)
{
	object *list;
	int j;

	printf("%-25s idle\n", "name (*edit, +input)");
	printf("--------------------      ----\n");
	for (list = users(), j = 0; j < sizeof(list); j++) {
		printf("%-25s %4d\n", (string)list[j]->query_name() +
		(in_edit(this_player()) ? "*" : "") +
		(in_input(this_player()) ? "+" : ""),
		query_idle(this_player()) / 60
		);
	}
	return 1;
}

Site Stats

Snippets: 1791
Codebases: 571