posting.c

nightmare4_fluffos_v1/lib/cmds/players/posting.c · 788 B

From the archive nightmare4_fluffos_v1.zip

Download the archive   « Back to the archive contents

//  Command _posting.c
//  Written by Hanse@Nightmare 6/21/93
 
#include <lib.h>
inherit LIB_DAEMON;
 
int cmd(string str) {
   object *list;
   int i;
 
   if(str) return 0;
   list=users();
   write("\nList of users in various editors:\n");
   for(i=0;i<sizeof(list);i++)
      if(!list[i]->GetInvis() && list[i]->GetKeyName())
         if(present("mailer", list[i]))
             printf("%s - In mailer.\n",
                arrange_string( (string)list[i]->GetName(), 20));
         else if(in_edit(list[i]) || in_input(list[i]))
             printf("%s - Editing.\n",
                arrange_string( (string)list[i]->GetName(), 20));
   return 1;
}
 
void help() {
   write(@END
Syntax: posting
Displays if a user is in editor, posting on a bulletin board, or in the
mailer.
END
);
}

Site Stats

Snippets: 1791
Codebases: 571