Binary files old/.DS_Store and new/.DS_Store differ diff -Nurb old/NP_TrackBack.php new/NP_TrackBack.php --- old/NP_TrackBack.php 2006-11-21 14:54:39.000000000 +0800 +++ new/NP_TrackBack.php 2006-11-22 01:49:04.000000000 +0800 @@ -545,7 +545,7 @@ // 4. Save data in the DB $res = @mysql_query(' SELECT - tb_id + block FROM '.sql_table('plugin_tb').' WHERE @@ -556,6 +556,8 @@ if (mysql_num_rows($res) != 0) { // Existing TB, update it + $row = mysql_fetch_row($res); + $block = $row[0] == 1; $res = @mysql_query(' UPDATE '.sql_table('plugin_tb').' @@ -631,7 +633,8 @@ } // 7. Send notification e-mail if needed - if ($this->getOption('Notify') == 'yes') + if (($block == false || $this->getOption('NoNotifyBlocked') == 'no') + && $this->getOption('Notify') == 'yes') { $destAddress = $this->getOption('NotifyEmail'); @@ -1818,6 +1821,7 @@ $this->createOption('dateFormat', 'Date format', 'text', "%e/%m/%g"); $this->createOption('Notify', 'Send e-mail notification on ping receipt','yesno','no'); + $this->createOption('NoNotifyBlocked', 'Don'."'".'t send e-mail notification for blocked pings','yesno','no'); $this->createOption('NotifyEmail', 'Which e-mail address to send these notification to?','text',''); $this->createOption('DropTable', 'Clear the database when uninstalling','yesno','no');