]> mj.ucw.cz Git - pciids.git/commitdiff
Let mailbot output ID in the log
authorMichal Vaner <vorner@ucw.cz>
Fri, 10 Oct 2008 10:12:45 +0000 (12:12 +0200)
committerMichal Vaner <vorner@ucw.cz>
Fri, 10 Oct 2008 10:12:45 +0000 (12:12 +0200)
scripts/mailbot

index 1cbd2e0c90ee847baae7899319268fd7fce24d16..87797baecd666bc87167142cfd62eb32ec8ee8e5 100755 (executable)
@@ -43,7 +43,7 @@ sub getAuthor( $ ) {
        my( $mail ) = @_;
        $hasAuth->execute( $mail );
        if( my( $id ) = $hasAuth->fetchrow_array ) {
        my( $mail ) = @_;
        $hasAuth->execute( $mail );
        if( my( $id ) = $hasAuth->fetchrow_array ) {
-               tlog( "mailbot: Active user ($mail) id: $nid" );
+               tlog( "mailbot: Active user ($mail) id: $id" );
                return $id;
        } else {
                tlog( "mailbot: Creating user $mail" );
                return $id;
        } else {
                tlog( "mailbot: Creating user $mail" );