All pastes #674112 Raw Edit

Something

public text v1 · immutable
#674112 ·published 2007-08-28 22:48 UTC
rendered paste body
use strict;
package changes;


sub scan(&$$) {
    my ($callback,$message,$who,$changes) = @_;


        if($message=~/^\@changes$/i) {

        open (LOG,"/home/testbot/fajita.log");
        @log = <LOG>;
        close LOG;

            @changes = grep(=~/ENTER:/i @log);
            $callback->(@changes);
            return 'NOREPLY';

       }

 return undef;
}

return "changes";