Index: /branches/release-40/plugins/TypePadAntiSpam/TypePadAntiSpam.pl
===================================================================
--- /branches/release-40/plugins/TypePadAntiSpam/TypePadAntiSpam.pl (revision 2461)
+++ /branches/release-40/plugins/TypePadAntiSpam/TypePadAntiSpam.pl (revision 2611)
@@ -71,4 +71,6 @@
     MT->add_callback('HandleJunk',    5, $plugin, \&handle_junk);
     MT->add_callback('HandleNotJunk', 5, $plugin, \&handle_not_junk);
+    MT->add_callback('MT::Comment::pre_save', 5, $plugin, \&pre_save_obj);
+    MT->add_callback('MT::TBPing::pre_save', 5, $plugin, \&pre_save_obj);
     MT->register_junk_filter({
         name => 'TypePadAntiSpam',
@@ -107,5 +109,9 @@
     my ($ctx, $args, $cond) = @_;
     my $blog = $ctx->stash('blog');
-    return $ctx->count_format($plugin->blocked($blog), $args);
+    if ($ctx->can('count_format')) {
+        return $ctx->count_format($plugin->blocked($blog), $args);
+    } else {
+        return $plugin->blocked($blog) || 0;
+    }
 }
 
