Skip to content
Snippets Groups Projects
Commit d49d9142 authored by deuce's avatar deuce
Browse files

Support moderated subs.

parent 3d0d6ed4
No related branches found
No related tags found
No related merge requests found
......@@ -84,6 +84,8 @@ while(1) {
hdr=msgbase.get_msg_header(msgid);
if(hdr==null)
continue;
if(msg_area.sub[msg_code].is_moderated && (hdr.attr & MSG_VALIDATED) == 0)
continue;
if(hdr.attr & (MSG_PRIVATE|MSG_DELETE))
continue;
var body=msgbase.get_msg_body(true, hdr.offset, true);
......
......@@ -4,6 +4,8 @@ for(i=msgbase.total_msgs; i>=0; i--) {
var hdr=msgbase.get_msg_header(true,i);
if(hdr==null)
continue;
if(msg_area.sub[msg_code].is_moderated && (hdr.attr & MSG_VALIDATED) == 0)
continue;
if(hdr.attr & (MSG_PRIVATE|MSG_DELETE))
continue;
if(poster!=undefined && poster!='') {
......
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