Skip to content
Snippets Groups Projects
Commit eda5b992 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Eliminate a couple of hard-coded instances of "ZIP"

parent eb2f9e98
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2548 passed
......@@ -22,6 +22,7 @@
#include "sbbs.h"
#include "js_request.h"
#include "ver.h"
#include "filedat.h"
#ifdef JAVASCRIPT
......@@ -1738,7 +1739,7 @@ js_new_user(JSContext *cx, uintN argc, jsval *arglist)
if(cfg->total_fcomps)
strcpy(user.tmpext,cfg->fcomp[0]->ext);
else
strcpy(user.tmpext,"ZIP");
strcpy(user.tmpext,supported_archive_formats[0]);
user.shell=cfg->new_shell;
user.misc=cfg->new_misc|(AUTOTERM|COLOR);
......
......@@ -22,6 +22,7 @@
#include "sbbs.h"
#include "petdefs.h"
#include "cmdshell.h"
#include "filedat.h"
/****************************************************************************/
/* This function is invoked when a user enters "NEW" at the NN: prompt */
......@@ -118,7 +119,7 @@ BOOL sbbs_t::newuser()
if(cfg.total_fcomps)
SAFECOPY(useron.tmpext,cfg.fcomp[0]->ext);
else
SAFECOPY(useron.tmpext,"ZIP");
SAFECOPY(useron.tmpext,supported_archive_formats[0]);
useron.shell=cfg.new_shell;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment