From bff27a721b9e348203f1b9795167422935e1fd45 Mon Sep 17 00:00:00 2001
From: Stephen L Johnson <sjohnson@monsters.org>
Date: Thu, 30 Nov 2000 21:27:40 +0000
Subject: [PATCH] added default msg template if default templ. not found in
 spong.message file

---
 src/spong-message.pl | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/spong-message.pl b/src/spong-message.pl
index 5a5a4e0..dea7ae5 100755
--- a/src/spong-message.pl
+++ b/src/spong-message.pl
@@ -12,7 +12,7 @@
 # (2) Added rules based paging (Stephen Johnson  Nov 14, 1998)
 # (3) Added checks against Acks and downtime (Stephen Johnson  Mar 17, 1999)
 #
-# $Id: spong-message.pl,v 1.15 2000/10/16 15:34:32 sljohnson Exp $
+# $Id: spong-message.pl,v 1.16 2000/11/30 21:27:40 sljohnson Exp $
 
 use lib "@@LIBDIR@@";
 
@@ -660,7 +660,12 @@ sub eval_template {
             $TEMPLATES{"$rcpt:$func"} ||
             $TEMPLATES{"$func"}       ||
             $TEMPLATES{"$rcpt"}       ||
-            $TEMPLATES{"DEFAULT"};
+            $TEMPLATES{"DEFAULT"}     ||
+            { 'subject' => 'spong - !!COLOR!! !!HOST!! !!SERVICE!!',
+              'body'    => '!!DATETIME!!
+!!COLOR!! !!HOST!! !!SERVICE!!
+!!SUMMARY!!', 
+            };
 
    if (! $templ) {
       &error("No custom message template or default template found");
-- 
2.30.2