Bug report on Dynamic Boards.

From: Patrick Dughi (dughi@IMAXX.NET)
Date: 04/30/98


        Yes, another one.. this one is a crash bug though.

        If a player who writes a message deletes, the get_level_by_id call
in board_remove_board will crash when it (eventually) tries to
str_cmp(<name of id 1>, NULL).  So, put this bit of code in where

 if(GET_LEVEL(ch) < get_level_by_id(MESG_POSTER(message))) {
    send_to_char("You may not remove messages written by people of higher level$
    return 1;
  }

with this:

  if(!get_level_by_id(MESG_POSTER(message)) && GET_LEVEL(ch) < LVL_GOD) {
    send_to_char("You cannot remove messages by unknown persons.",ch);
    return 1;
  } else if(GET_LEVEL(ch) < get_level_by_id(MESG_POSTER(message))) {
    send_to_char("You may not remove messages written by people of higher
level.\r\n",ch);
    return 1;
  }

                                PjD


     +------------------------------------------------------------+
     | 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/15/00 PST