On Mon, 15 Dec 1997, Chuck Reed wrote: >ACMD(do_edit_motd) >{ > char motd = "text/motd"; The MOTD filename is already defined elsewhere. > int i = TRUE; > FILE *f; > char buf2[100]; > > f = fopen(motd,"w"); Not checking for error? > send_to_char("Enter a new MOTD below:\r\n", ch); > while(i != FALSE) { > send_to_char("] ", ch); > fgets(buf2); You should be using the modify.c routines like the boards and notes do. > if(buf2 == "/s") You can't do that, try str_cmp() -- George Greer - Me@Null.net | Genius may have its limitations, but stupidity http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard +------------------------------------------------------------+ | 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