users.bbs handling fixed

This commit is contained in:
Alexander S. Aganichev 2001-04-02 20:59:14 +00:00
parent f79327b384
commit b3cf864163
5 changed files with 7 additions and 9 deletions

View File

@ -12,7 +12,9 @@ ______________________________________________________________________
Notes for GoldED+ 1.1.5, March xx 2001
______________________________________________________________________
- Soft-deleted messages now not hided from messagelist right after
- Fixed users.bbs handling for *.msg and Squish areas.
- Soft-deleted messages no longer hidden from messagelist right after
deletion any more.
+ Added new switch JamSMAPIHighwater. If defined GoldED+ will handle

View File

@ -138,8 +138,7 @@ void FidoInit(const char* fidolastread, int fidohwmarks, int fidonullfix, int fi
const char* _username = WideUsername[0];
if(fidowide->userno == -1) {
Path userfile;
strxcpy(userfile, fidowide->squishuserpath, sizeof(Path));
AddPath(userfile, "USER.BBS");
strxcpy(userfile, AddPath(fidowide->squishuserpath, "USER.BBS"), sizeof(Path));
fidowide->user->fh = ::sopen(userfile, O_RDWR|O_CREAT|O_BINARY, WideSharemode, S_STDRW);
if(fidowide->user->fh != -1) {
fidowide->user->find(_username);

View File

@ -36,8 +36,7 @@
char* FidoArea::user_lookup(char* __lookfor) {
Path userfile;
strxcpy(userfile, fidowide->squishuserpath, sizeof(Path));
AddPath(userfile, "USER.BBS");
strxcpy(userfile, AddPath(fidowide->squishuserpath, "USER.BBS"), sizeof(Path));
wide->user->fh = ::sopen(userfile, O_RDONLY|O_BINARY, WideSharemode, S_STDRD);
wide->user->findwild(__lookfor, __lookfor);
::close(wide->user->fh);

View File

@ -87,8 +87,7 @@ void SquishInit(const char* userpath, int userno, int direct, int recycle, int s
throw_new(squishwide->user);
Path userfile;
strxcpy(userfile, userpath, sizeof(Path));
AddPath(userfile, "USER.BBS");
strxcpy(userfile, AddPath(userpath, "USER.BBS"), sizeof(Path));
const char* _username = WideUsername[0];
if(squishwide->userno == -1) {
squishwide->user->fh = ::sopen(userfile, O_RDWR|O_CREAT|O_BINARY, WideSharemode, S_STDRW);

View File

@ -36,8 +36,7 @@
char* SquishArea::user_lookup(char* __lookfor) {
Path userfile;
strxcpy(userfile, wide->userpath, sizeof(Path));
AddPath(userfile, "USER.BBS");
strxcpy(userfile, AddPath(wide->userpath, "USER.BBS"), sizeof(Path));
wide->user->fh = ::sopen(userfile, O_RDONLY|O_BINARY, WideSharemode, S_STDRD);
wide->user->findwild(__lookfor, __lookfor);
::close(wide->user->fh);