From e4856a0adde3ac54ce4ebdb7c2f04a60d0aecf49 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/svn@88 3873ddee-7413-0410-b6c4-c2c57c1ab35a --- ddclient | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ddclient b/ddclient index 9bef661..69aa908 100755 --- a/ddclient +++ b/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) {