Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commits (1)
...@@ -39,17 +39,21 @@ if(hdr.attr & MSG_MODERATED) { ...@@ -39,17 +39,21 @@ if(hdr.attr & MSG_MODERATED) {
} }
if(Number(hdr.from_ext) > 0) { if(Number(hdr.from_ext) > 0) {
template.u_num = hdr.from_ext; template.u_num = hdr.from_ext;
usr = new User(template.u_num); usr = null;
template.author_firston = strftime("%m/%d/%y",usr.stats.firston_date); try {
template.author_posts = usr.stats.total_posts; usr = new User(template.u_num);
template.author_firston = strftime("%m/%d/%y",usr.stats.firston_date);
template.author_posts = usr.stats.total_posts;
} catch(e) {
}
if(sub!='mail') { if(sub!='mail') {
if((user.compare_ars(msg_area.sub[sub].operator_ars) && msg_area.sub[sub].operator_ars != '' || user.number==1) && show_ip==true) { if((user.compare_ars(msg_area.sub[sub].operator_ars) && msg_area.sub[sub].operator_ars != '' || user.number==1) && show_ip==true) {
template.author_ip='IP: ' + usr.note + '<br /><br />'; template.author_ip='IP: ' + usr.note + '<br /><br />';
} }
template.author_ismod = '<br />Member<br /><br />'; template.author_ismod = '<br />Member<br /><br />';
if(usr.compare_ars(msg_area.sub[sub].operator_ars) && msg_area.sub[sub].operator_ars != '' || usr.number==1) if(usr && (usr.compare_ars(msg_area.sub[sub].operator_ars) && msg_area.sub[sub].operator_ars != '' || usr.number==1))
template.author_ismod = '<br />Moderator<br /><br />'; template.author_ismod = '<br />Moderator<br /><br />';
if(file_exists(prefs_dir + format("%04d.html_prefs",usr.number))); { if(usr && file_exists(prefs_dir + format("%04d.html_prefs",usr.number))) {
prefsfile=new File(prefs_dir + format("%04d.html_prefs",usr.number)); prefsfile=new File(prefs_dir + format("%04d.html_prefs",usr.number));
if(prefsfile.open("r",false)) { if(prefsfile.open("r",false)) {
if(prefsfile.iniGetValue('Profile', 'Avatar', '')!='') { if(prefsfile.iniGetValue('Profile', 'Avatar', '')!='') {
......