Commit 4a8d217d authored by rswindell's avatar rswindell
Browse files

Fix bug in listsub(): if there were polls posted in the sub-board the message

numbers displayed could be wrong since the poll-messages were not loaded
(or counted).
parent a5c022b7
......@@ -1674,6 +1674,8 @@ long sbbs_t::listsub(uint subnum, long mode, long start, const char* search)
lp_mode = 0;
if(mode&SCAN_UNREAD)
lp_mode |= LP_UNREAD;
if(!(cfg.sub[subnum]->misc&SUB_NOVOTING))
lp_mode |= LP_POLLS;
post=loadposts(&posts,subnum,0,lp_mode,NULL,&total);
bprintf(text[SearchSubFmt]
,cfg.grp[cfg.sub[subnum]->grp]->sname,cfg.sub[subnum]->lname,total);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment