INN commit: branches/2.4/control/modules (newgroup.pl)
INN Commit
Russ_Allbery at isc.org
Tue Nov 21 08:29:39 UTC 2006
Date: Tuesday, November 21, 2006 @ 00:29:39
Author: eagle
Revision: 7582
Don't send mail if the action is no change. Patch from Julien ?\195?\137LIE.
Modified:
branches/2.4/control/modules/newgroup.pl
-------------+
newgroup.pl | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
Modified: newgroup.pl
===================================================================
--- newgroup.pl 2006-11-21 08:29:10 UTC (rev 7581)
+++ newgroup.pl 2006-11-21 08:29:39 UTC (rev 7582)
@@ -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