A motd/imotd online editor

From: Chuck Reed (creed@I-55.COM)
Date: 12/15/97


Ok, this command code doesn't even get to the send_to_char call to send the
text to the player(like you didnt know what that did!).  Anyone have any
idea why?

ACMD(do_edit_motd)
{
  char motd = "text/motd";
  int i = TRUE;
  FILE *f;
  char buf2[100];

  f = fopen(motd,"w");
  send_to_char("Enter a new MOTD below:\r\n", ch);
    while(i != FALSE) {
       send_to_char("] ", ch);
       fgets(buf2);
   if(buf2 == "/s")
      i = FALSE;
   else
      fprintf(f, "%s\r\n", buf2);
  }
 fclose(f);
}

Chuck


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST