Fixed mbfile area seek bug

This commit is contained in:
Michiel Broek 2003-11-02 11:51:10 +00:00
parent 6c8e320e68
commit 03bc6ee9d0
3 changed files with 17 additions and 14 deletions

View File

@ -15,6 +15,10 @@ v0.39.1 22-Oct-2003
Fixed a bug where the bbs goes into a loop after idle timeout Fixed a bug where the bbs goes into a loop after idle timeout
during login (and maybe in other situations). during login (and maybe in other situations).
mbfile:
When the areanumber with the adopt command was not given, the
help is displayed instead of trying area 0 that doesn't exist.
mbsetup: mbsetup:
In node editor, fixed error message when there was no more In node editor, fixed error message when there was no more
room for new nodes to point to the right menus. room for new nodes to point to the right menus.

5
TODO
View File

@ -1,6 +1,6 @@
$Id$ $Id$
MBSE BBS V0.38.0 TODO list. MBSE BBS V0.39.1 TODO list.
--------------------------- ---------------------------
These are a list of things that must be implemented one way or These are a list of things that must be implemented one way or
@ -130,9 +130,6 @@ mbfile:
N: Add area sorting N: Add area sorting
N: If area is missing on the commandline, mbfile searches for record
0 wich doesn't exist.
mbmsg: mbmsg:
N: With the post command if a netmail area is used the netmail area N: With the post command if a netmail area is used the netmail area
will cause trouble later, should be blocked to be used on netmail will cause trouble later, should be blocked to be used on netmail

View File

@ -104,23 +104,25 @@ int main(int argc, char **argv)
cmd = xstrcat(cmd, argv[i]); cmd = xstrcat(cmd, argv[i]);
if (!strncasecmp(argv[i], "a", 1)) { if (!strncasecmp(argv[i], "a", 1)) {
do_adopt = TRUE;
i++; i++;
Area = atoi(argv[i]); Area = atoi(argv[i]);
cmd = xstrcat(cmd, (char *)" "); cmd = xstrcat(cmd, (char *)" ");
cmd = xstrcat(cmd, argv[i]); cmd = xstrcat(cmd, argv[i]);
i++; if (Area) {
FileName = xstrcpy(argv[i]); do_adopt = TRUE;
cmd = xstrcat(cmd, (char *)" ");
cmd = xstrcat(cmd, argv[i]);
if (argc > (i + 1)) {
i++; i++;
FileName = xstrcpy(argv[i]);
cmd = xstrcat(cmd, (char *)" "); cmd = xstrcat(cmd, (char *)" ");
cmd = xstrcat(cmd, argv[i]); cmd = xstrcat(cmd, argv[i]);
if (!strncasecmp(argv[i], "-a", 2)) { if (argc > (i + 1)) {
do_annon = TRUE; i++;
} else { cmd = xstrcat(cmd, (char *)" ");
Description = xstrcpy(argv[i]); cmd = xstrcat(cmd, argv[i]);
if (!strncasecmp(argv[i], "-a", 2)) {
do_annon = TRUE;
} else {
Description = xstrcpy(argv[i]);
}
} }
} }
} else if ((!strncasecmp(argv[i], "d", 1)) || (!strncasecmp(argv[i], "u", 1))) { } else if ((!strncasecmp(argv[i], "d", 1)) || (!strncasecmp(argv[i], "u", 1))) {