die if defined $contest && (time > contest_end $contest);
return reply 'A required parameter was not supplied' if grep { !defined } $problem, $format, $prog;
return reply 'Maximum source size is 10KB' if length $prog > 25 * 1024;
- return reply 'You must wait 30 seconds between jobs' unless time > lastjob ($r->user) + 30;
- set_lastjob $r->user;
+ return reply 'You must wait 30 seconds between jobs' unless time > user_lastjob ($r->user) + 30;
+ set_user_lastjob $r->user, time;
local $Gruntmaster::Data::contest = $contest if $contest;