diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2011-02-16 19:26:06 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2011-02-16 19:26:06 +0800 |
commit | 0d3d0b267a8187b92973b98c5354f3ce6265ecf5 (patch) | |
tree | bad6fb5873ed56a59a264be5f497dac363eb14bc | |
parent | 627ab0dfdbbcc7f9e9f40df8ececee7fdabd6108 (diff) | |
download | pttbbs-0d3d0b267a8187b92973b98c5354f3ce6265ecf5.tar pttbbs-0d3d0b267a8187b92973b98c5354f3ce6265ecf5.tar.gz pttbbs-0d3d0b267a8187b92973b98c5354f3ce6265ecf5.tar.bz2 pttbbs-0d3d0b267a8187b92973b98c5354f3ce6265ecf5.tar.lz pttbbs-0d3d0b267a8187b92973b98c5354f3ce6265ecf5.tar.xz pttbbs-0d3d0b267a8187b92973b98c5354f3ce6265ecf5.tar.zst pttbbs-0d3d0b267a8187b92973b98c5354f3ce6265ecf5.zip |
fix: using 's' in myfav to enter boards (those do not exist in myfav) would
cause currutmp.brc_id caching that board.
NOTE: not sure if there's any side effects, since the whole enter_board stuff is
a mess.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5307 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/board.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pttbbs/mbbsd/board.c b/pttbbs/mbbsd/board.c index 671b9564..caa33c85 100644 --- a/pttbbs/mbbsd/board.c +++ b/pttbbs/mbbsd/board.c @@ -1723,6 +1723,7 @@ choose_board(int newflag) case 's': { char bname[IDLEN+1]; + int tmpbid = currutmp->brc_id; move(0, 0); clrtoeol(); // since now user can use Ctrl-S to get access @@ -1746,6 +1747,7 @@ choose_board(int newflag) if(enter_board(bname) >= 0) Read(); // restore my mode + setutmpbid(tmpbid); setutmpmode(newflag ? READNEW : READBRD); } break; |