Skip to content
Snippets Groups Projects
Commit 83eedf57 authored by rswindell's avatar rswindell
Browse files

Vote-message-import failures from QWKnet hubs are now not treated as an

error (e.g. trigger a bad QWK packet copy to be created). The debug-level
log messages is still generated however.
parent 47fe739a
No related branches found
No related tags found
No related merge requests found
...@@ -1213,10 +1213,11 @@ bool sbbs_t::qwk_vote(str_list_t ini, const char* section, smb_net_type_t net_ty ...@@ -1213,10 +1213,11 @@ bool sbbs_t::qwk_vote(str_list_t ini, const char* section, smb_net_type_t net_ty
if(result == SMB_DUPE_MSG) if(result == SMB_DUPE_MSG)
lprintf(LOG_DEBUG, "Duplicate vote-msg (%s) from %s", msg.id, qnet_id); lprintf(LOG_DEBUG, "Duplicate vote-msg (%s) from %s", msg.id, qnet_id);
else if(result != SMB_SUCCESS) { else if(result != SMB_SUCCESS) {
if(hubnum >= 0) if(hubnum >= 0) {
lprintf(LOG_DEBUG, "Error %s (%d) writing %s vote-msg (%s) to %s" lprintf(LOG_DEBUG, "Error %s (%d) writing %s vote-msg (%s) to %s"
,smb.last_error, result, qnet_id, msg.id, smb.file); ,smb.last_error, result, qnet_id, msg.id, smb.file);
else result = SMB_SUCCESS; // ignore vote failures for old messages
} else
errormsg(WHERE, ERR_WRITE, smb.file, result, smb.last_error); errormsg(WHERE, ERR_WRITE, smb.file, result, smb.last_error);
} }
} }
......
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