? guitar_filter_comments_1.patch
Index: guitar_filter.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/guitar/guitar_filter.module,v
retrieving revision 1.3.4.4
diff -u -p -r1.3.4.4 guitar_filter.module
--- guitar_filter.module	13 Jul 2008 10:46:25 -0000	1.3.4.4
+++ guitar_filter.module	4 Jan 2009 10:54:16 -0000
@@ -54,6 +54,20 @@ function guitar_filter_nodeapi(&$node, $
 }
 
 /**
+ * Implementation of hook_comment().
+ */
+function guitar_comment(&$a1, $op) {
+  if ($op == 'view') {
+    // Only nodes with the guitar filter in the format may be altered
+    foreach (filter_list_format($comment->format) as $filter) {
+      if ($filter->module == 'guitar_filter') {
+        $comment->comment = _guitar_filter_substitute_chords($comment->comment);
+      }
+    }
+  }
+}
+
+/**
  * Replace chord tags with chords diagrams
  */
 function _guitar_filter_substitute_chords($text) {
