Skip to content
Permalink
Browse files

Do not trigger errors if stopforumspam connection fails, if stopforum…

…spam is incidental to main action being performed
  • Loading branch information...
chrisgraham committed Jul 3, 2019
1 parent f5b579e commit fd4d9ca5bed6361ad764b83a9d3a3671939b40ae
Showing with 2 additions and 2 deletions.
  1. +1 −1 adminzone/pages/modules/admin_trackbacks.php
  2. +1 −1 site/pages/modules/warnings.php
@@ -157,7 +157,7 @@ public function delete_trackbacks()
require_code('failure');
require_code('failure_spammers');
add_ip_ban($trackback_ip, do_lang('TRACKBACK_SPAM'));
syndicate_spammer_report($trackback_ip, '', '', do_lang('TRACKBACK_SPAM'), true);
syndicate_spammer_report($trackback_ip, '', '', do_lang('TRACKBACK_SPAM'), false);
}
// Intentionally no 'break' line below
case '1':
@@ -950,7 +950,7 @@ public function add_actualisation()
$banned_ip = $GLOBALS['FORUM_DRIVER']->get_member_row_field($member_id, 'm_ip_address');
require_code('failure');
require_code('failure_spammers');
syndicate_spammer_report($banned_ip, $username, $GLOBALS['FORUM_DRIVER']->get_member_email_address($member_id), $explanation, true);
syndicate_spammer_report($banned_ip, $username, $GLOBALS['FORUM_DRIVER']->get_member_email_address($member_id), $explanation, false);
require_code('cns_general_action2');
cns_mod_log_it('MARK_AS_SPAMMER', strval($member_id), $username);

0 comments on commit fd4d9ca

Please sign in to comment.
You can’t perform that action at this time.