]> git.pld-linux.org Git - packages/nagios-alert-jabber.git/commitdiff
Warn about missing message body.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 8 Apr 2008 09:01:31 +0000 (09:01 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nagios-jabber.alert -> 1.11

nagios-jabber.alert

index 1ec627a9f796c6380195c838005adbdec1b2766e..3e033a54fcea8a184e4990f2be52c7c1e0c36141 100644 (file)
@@ -71,6 +71,9 @@ for line in sys.stdin.readlines():
 
 body += stdin_body
 
+if len(body.strip()) == 0:
+       body = "(nagios-jabber.alert warning: missing message body)";
+
 message_type = 'chat'
 
 jid = JID(jid)
This page took 0.044344 seconds and 4 git commands to generate.