INN commit: trunk/control/modules (newgroup.pl)

INN Commit Russ_Allbery at isc.org
Tue Nov 21 08:29:10 UTC 2006


    Date: Tuesday, November 21, 2006 @ 00:29:10
  Author: eagle
Revision: 7581

Don't send mail if the action is no change.  Patch from Julien ?\195?\137LIE.

Modified:
  trunk/control/modules/newgroup.pl

-------------+
 newgroup.pl |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Modified: newgroup.pl
===================================================================
--- newgroup.pl	2006-11-21 00:41:32 UTC (rev 7580)
+++ newgroup.pl	2006-11-21 08:29:10 UTC (rev 7581)
@@ -111,8 +111,10 @@
         }
         update_desc($ngname, $ngdesc) if $ngdesc and $ngname eq $groupname;
 
-        logger($log, "newgroup $groupname $modcmd $status $sender",
-            $headers, $body) if $log;
+        if ($log ne 'mail' or $status ne 'no change') {
+            logger($log, "newgroup $groupname $modcmd $status $sender",
+                   $headers, $body) if $log;
+        }
     }
     return;
 }



More information about the inn-committers mailing list