]> git.etc.gen.nz Git - spong.git/commitdiff
adding missing msg template code for 'contact:module' formatted contacts
authorStephen L Johnson <sjohnson@monsters.org>
Thu, 20 Jul 2000 06:24:53 +0000 (06:24 +0000)
committerStephen L Johnson <sjohnson@monsters.org>
Thu, 20 Jul 2000 06:24:53 +0000 (06:24 +0000)
src/spong-message.pl

index f08251f74e88f6a10c7776c0552fcf200ac539b5..0b38aca985d7f7fcf8924e83b6edfe40b32c54be 100755 (executable)
@@ -618,8 +618,11 @@ RULE:
          }
       } else {
          if (defined $HUMANS{$person}->{$func}) {
+
+            ($subj,$body) = eval_template($person,$func);
+
             # Call the message function as referenced by the MSGFUNCS hash
-            eval { &{$MSGFUNCS{$func}}($HUMANS{$person}->{$func}); };
+            eval { &{$MSGFUNCS{$func}}($HUMANS{$person}->{$func},$subj,$body); };
 
             if ($@) {
                &error("No message function defined for $func: $@");