diff options
Diffstat (limited to 'lib/VNDB/Handler/Discussions.pm')
-rw-r--r-- | lib/VNDB/Handler/Discussions.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/VNDB/Handler/Discussions.pm b/lib/VNDB/Handler/Discussions.pm index eff8212e..dce8dcde 100644 --- a/lib/VNDB/Handler/Discussions.pm +++ b/lib/VNDB/Handler/Discussions.pm @@ -166,6 +166,9 @@ sub edit { { name => 'msg', maxlenght => 5000 }, ); + # check for double-posting + push @{$frm->{_err}}, 'doublepost' if $self->dbPostCheckDouble($self->{_auth}{id}, $tid); + # parse and validate the boards my @boards; if(!$frm->{_err} && $frm->{boards}) { |