+ if ($_{contest} =~ /d[12]$/) {
+ my $other = $_{contest} =~ y/12/21/r;
+ my ($ans) = db->query('SELECT COUNT(*) FROM jobs WHERE owner = ? AND contest = ?', remote_user->{id}, $other)->flat;
+ return reply 'You are not allowed to participate in both divisions of a round' if $ans;
+ }