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

Don't call putuserdat if the user number is invalid (not logged in)

This should fix issue #626
parent 789c71cd
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4702 passed
...@@ -2024,7 +2024,8 @@ bool sbbs_t::select_editor(void) ...@@ -2024,7 +2024,8 @@ bool sbbs_t::select_editor(void)
if(useron.xedit) useron.xedit--; if(useron.xedit) useron.xedit--;
if((i=uselect(0,useron.xedit,0,0,0))>=0) { if((i=uselect(0,useron.xedit,0,0,0))>=0) {
useron.xedit=i+1; useron.xedit=i+1;
putuserstr(useron.number, USER_XEDIT, cfg.xedit[i]->code); if(useron.number > 0)
putuserstr(useron.number, USER_XEDIT, cfg.xedit[i]->code);
return(true); return(true);
} }
return(false); return(false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment