except:
raise decorators.CommandException(_("Invalid number of points to award."))
+ awarding_user = get_object_or_404(User, id=request.user.pk)
+
+ if points > awarding_user.reputation:
+ raise decorators.CommandException(_("Invalid number of points to award."))
+
user = get_object_or_404(User, id=id)
extra = dict(message=request.POST.get('message', ''), awarding_user=request.user.id, value=points)