]> mj.ucw.cz Git - pciids.git/commitdiff
Let mailbot output active user
authorMichal Vaner <vorner@ucw.cz>
Mon, 1 Sep 2008 21:26:55 +0000 (23:26 +0200)
committerMichal Vaner <vorner@ucw.cz>
Mon, 1 Sep 2008 21:26:55 +0000 (23:26 +0200)
scripts/mailbot

index eb4ac66150632ef31241e290e26ee273a0f96e90..c43c4c50aa912d5b27ac1c202c8cc9e1c68a2788 100755 (executable)
@@ -43,12 +43,13 @@ sub getAuthor( $ ) {
        my( $mail ) = @_;
        $hasAuth->execute( $mail );
        if( my( $id ) = $hasAuth->fetchrow_array ) {
+               tlog( "mailbot: Active user ($mail) id: $nid" );
                return $id;
        } else {
                tlog( "mailbot: Creating user $mail" );
                $addAuth->execute( $mail );
                my $nid = $tables->dbh->last_insert_id( undef, undef, undef, undef );
-               tlog( "mailbot: User ($mail) id: $nid" );
+               tlog( "mailbot: Active user ($mail) id: $nid" );
                return $nid;
        }
 }