]> mj.ucw.cz Git - pciids.git/commitdiff
Mailbot: subscribe notifications
authorMichal Vaner <vorner@ucw.cz>
Wed, 3 Sep 2008 14:55:12 +0000 (16:55 +0200)
committerMichal Vaner <vorner@ucw.cz>
Wed, 3 Sep 2008 14:55:12 +0000 (16:55 +0200)
scripts/mailbot

index c43c4c50aa912d5b27ac1c202c8cc9e1c68a2788..b0a1227880c4ea8c77f12205bf2d46b3eea00b0f 100755 (executable)
@@ -78,6 +78,9 @@ sub submitItem( $$$$$ ) {
        my $hid = $tables->last();
        tlog( "mailbot: History created $hid $id ".logEscape( $name )." ".logEscape( $description )." ".logEscape( $text ) );
        notify( $tables, $id, $hid, $created ? 2 : 1, $created ? 0 : 1 );
+       if( !$tables->notifExists( $author, $id ) ) {
+               $tables->submitNotification( $author, $id, { 'recursive' => 0, 'notification' => 1, 'way' => 0 } );
+       }
 }
 
 if (!$patch) {