# $Header: /raid/cvsroot/rt-addons/ScripConditions/OnOwnerChange/OwnerChange.pm,v 1.1 2001/06/17 19:18:36 jesse Exp $
# Copyright 1996-2001 Jesse Vincent <jesse@fsck.com> 
# Released under the terms of the GNU General Public License
# OnOwnerChange Condition by Bas Toonk (B.Toonk@zx.nl);
# This a a copy form the OnQueueChange script!

package RT::Condition::OwnerChange;
require RT::Condition::Generic;

@ISA = qw(RT::Condition::Generic);


=head2 IsApplicable

If the queue is being changed, return true

=cut

sub IsApplicable {
    my $self = shift;
    if ($self->TransactionObj->Field eq 'Owner')  {
	return(1);
    } 
    else {
	return(undef);
    }
}

1;

