[omd-commits] OMD Git: omd: notifications-tt: fixed ascii notifications

git version control git at mathias-kettner.de
Fri Jun 29 09:28:21 CEST 2012


Module:   omd
Branch:   master
Commit:   17f16cb2e52959ddbe7297050d9d0d3a44afab2a
URL:      http://omdistro.org/projects/omd/repository/revisions/17f16cb2e52959ddbe7297050d9d0d3a44afab2a

Author:   Sven Nierlein <sven at nierlein.de>
Date:     Fri Jun 29 09:27:53 2012 +0200
Commiter: Sven Nierlein <sven at nierlein.de>
Date:     Fri Jun 29 09:27:53 2012 +0200

notifications-tt: fixed ascii notifications

---

 packages/notifications-tt/notify-by-email.pl |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/packages/notifications-tt/notify-by-email.pl b/packages/notifications-tt/notify-by-email.pl
index a85e056..d98f72e 100755
--- a/packages/notifications-tt/notify-by-email.pl
+++ b/packages/notifications-tt/notify-by-email.pl
@@ -69,12 +69,10 @@ $0 --template=<path to template> -o <MACRO>=<VALUE> -o ....
 }
 
 sub extract_ascii {
-    my($text) = @_;
-    return unless defined $text;
-    $text =~ s/.*
+    return unless defined $_[0];
+    $_[0] =~ s/.*
                ^ASCII_NOTIFICATION_START$
                \s*(.*)
                ASCII_NOTIFICATION_END$
                .*/$1/msx;
-    return;
 }



More information about the omd-commits mailing list