From: Stephen L Johnson Date: Thu, 20 Jul 2000 06:24:53 +0000 (+0000) Subject: adding missing msg template code for 'contact:module' formatted contacts X-Git-Tag: spong-2_7-alpha8~6 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e559044854182b7051f45d5bc76d14bfcf54402b;p=spong.git adding missing msg template code for 'contact:module' formatted contacts --- diff --git a/src/spong-message.pl b/src/spong-message.pl index f08251f..0b38aca 100755 --- a/src/spong-message.pl +++ b/src/spong-message.pl @@ -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: $@");