From 20bfbfbbef5ecaed2c95bbc04c7e66c33847dd20 Mon Sep 17 00:00:00 2001 From: wimpunk Date: Thu, 5 Jun 2008 07:04:20 +0000 Subject: [PATCH] Preventing an error when trying to send a message on mail-failure git-svn-id: svn+ssh://svn.code.sf.net/p/ddclient/code/trunk@88 3873ddee-7413-0410-b6c4-c2c57c1ab35a --- svn/ddclient | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svn/ddclient b/svn/ddclient index 9bef661..69aa908 100755 --- a/svn/ddclient +++ b/svn/ddclient @@ -1403,7 +1403,7 @@ sub logger { sub sendmail { my $recipients = opt('mail'); - if (opt('mail-failure') && ($result ne 'OK' && $result != 0)) { + if (opt('mail-failure') && ($result ne 'OK' && $result ne '0')) { $recipients = opt('mail-failure'); } if ($msgs && $recipients && $msgs ne $last_msgs) {