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

Don't log an error when a QWK-posted vote message is a dupe (just silently

discard).
Also, trim trailing white-spaces.
parent 8473c989
No related branches found
No related tags found
No related merge requests found
...@@ -1184,7 +1184,8 @@ bool sbbs_t::qwk_vote(str_list_t ini, const char* section, smb_net_type_t net_ty ...@@ -1184,7 +1184,8 @@ bool sbbs_t::qwk_vote(str_list_t ini, const char* section, smb_net_type_t net_ty
msg.hdr.votes = iniGetShortInt(ini, section, "votes", 0); msg.hdr.votes = iniGetShortInt(ini, section, "votes", 0);
notice = text[PollVoteNotice]; notice = text[PollVoteNotice];
} }
if((result=votemsg(&cfg, &smb, &msg, notice)) != SMB_SUCCESS) result = votemsg(&cfg, &smb, &msg, notice);
if(result != SMB_SUCCESS && result != SMB_DUPE_MSG)
errormsg(WHERE, ERR_WRITE, smb.file, result, smb.last_error); errormsg(WHERE, ERR_WRITE, smb.file, result, smb.last_error);
} }
else if(strnicmp(section, "close:", 6) == 0) { else if(strnicmp(section, "close:", 6) == 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment