[bugfix] for socials_editor.patch users

From: Michael Scott (scottm@dns.workcomm.net)
Date: 10/29/96


	Sorry, about this .. i forgot i had to fix the way that boards,
handled the read/write commands, because in stock circle in init_board, 
it just looks up all the command numbers and then stores them, well with 
the advent of the socials editor the command numbers get swapped around 
when you add in socials, so i put where it looks up the commands, in 
gen_board (so it looks em up every time you do something in a board room) 
this is probably a sloppy fix, but definately works.
So make a long story short heres the fix for boards.c (in diff format),
for those of you who put in the social_editor.patch:
NOTE: the patch lists the function name where the change took place after 
the longer string of *'s:
*************** some_function(void);
                ^^^^ thats the function where the change happened.

-------------------------- cut here: diff.patch ------------------------
*** circle-olcedit/src/boards.c	Mon Oct 28 12:19:55 1996
--- beta/src/boards.c	Wed Oct 30 01:44:29 1996
*************** void init_boards(void)
*** 138,151 ****
      }
      Board_load_board(i);
    }
  
-   CMD_READ = find_command("read");
-   CMD_WRITE = find_command("write");
-   CMD_REMOVE = find_command("remove");
-   CMD_LOOK = find_command("look");
-   CMD_EXAMINE = find_command("examine");
- 
    if (fatal_error)
      exit(1);
  }
  
--- 137,144 ----
*************** SPECIAL(gen_board)
*** 161,168 ****
--- 154,167 ----
    }
    if (!ch->desc)
       return 0;
  
+   CMD_READ = find_command("read");
+   CMD_WRITE = find_command("post");
+   CMD_REMOVE = find_command("remove");
+   CMD_LOOK = find_command("look");
+   CMD_EXAMINE = find_command("examine");
+    
    if (cmd != CMD_WRITE && cmd != CMD_LOOK && cmd != CMD_EXAMINE &&
        cmd != CMD_READ && cmd != CMD_REMOVE)
      return 0;
------------------------------ cut here --------------------------------

                      Michael Scott -- "Living in the Eye of the Hurricane."
		      FLAMES/COMMENTS to scottm@workcomm.net

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



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