who.c

melville/cmds/player/who.c · 299 B

From the archive melville_0.9.tar.gz

Download the archive   « Back to the archive contents

/* The who command. Kinda bare-bones right now. */

#include <config.h>

int do_command() {

    string foo ;
    string *names ;

    write ("The following users are logged on: \n") ;
    names = USERS_D->query_user_names() ;
    foo = implode(names,", ") ;
    write (foo+"\n") ;
    return 1 ;
}

Site Stats

Snippets: 1791
Codebases: 571