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

Introduce sbbs_t::sync() method that does what the old SYNC/ASYNC macros do

But... as rightful member of sbbs_t, thus useful from other scopes.

Should get rid of all use of SYNC/ASYNC now then.
parent edc931be
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -1951,6 +1951,7 @@ js_logoff(JSContext *cx, uintN argc, jsval *arglist)
sbbs->exec_bin(sbbs->cfg.logoff_mod,&sbbs->main_csi);
sbbs->user_event(EVENT_LOGOFF);
sbbs->menu("logoff");
sbbs->sync();
sbbs->hangup();
}
JS_RESUMEREQUEST(cx, rc);
......
......@@ -966,6 +966,7 @@ public:
user_t nodesync_user{};
bool nodesync_inside = false;
uint count_nodes(bool self = true);
void sync(bool clearline = false) { getnodedat(cfg.node_num, &thisnode, 0); nodesync(clearline); }
/* putnode.cpp */
int putnodedat(uint number, node_t * node);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment