From: Michal Vaner Date: Mon, 1 Sep 2008 21:26:55 +0000 (+0200) Subject: Let mailbot output active user X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=6319693d6389b2f83e7ea9f4064f6e002d9156d8;p=pciids.git Let mailbot output active user --- diff --git a/scripts/mailbot b/scripts/mailbot index eb4ac66..c43c4c5 100755 --- a/scripts/mailbot +++ b/scripts/mailbot @@ -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; } }