From 6319693d6389b2f83e7ea9f4064f6e002d9156d8 Mon Sep 17 00:00:00 2001 From: Michal Vaner Date: Mon, 1 Sep 2008 23:26:55 +0200 Subject: [PATCH] Let mailbot output active user --- scripts/mailbot | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } } -- 2.39.5