[vhffs-dev] [1093] Forgot to ->commit for setquota on modobot.pl

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1093
Author:   misric
Date:     2007-11-22 17:20:07 +0000 (Thu, 22 Nov 2007)

Log Message:
-----------
Forgot to ->commit for setquota on modobot.pl

Modified Paths:
--------------
    trunk/vhffs-irc/modobot.pl


Modified: trunk/vhffs-irc/modobot.pl
===================================================================
--- trunk/vhffs-irc/modobot.pl	2007-11-22 16:42:59 UTC (rev 1092)
+++ trunk/vhffs-irc/modobot.pl	2007-11-22 17:20:07 UTC (rev 1093)
@@ -283,8 +283,9 @@
                 irc_msg ($groupname.' : No such group');
                 return;
         }
-irc_msg("Group ".$groupname.": Setting quota from ".$group->get_quota." to ".$quotavalue);
+my $old_quota = $group->get_quota;
 $group->set_quota($quotavalue);
+irc_msg("Group ".$groupname.": Setting quota from ".$old_quota." to ".$group->get_quota) if ($group->commit >= 0);
 
 }
 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/