diff options
author | Yorhel <git@yorhel.nl> | 2009-08-08 11:35:02 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-08-08 11:36:40 +0200 |
commit | 56e1cdc886144b85ede74c15d1ced116c790f7c2 (patch) | |
tree | 814cc652c6c8a3a4ac6d26ca9d6d1769342ddccd /lib/VNDB/Handler/Discussions.pm | |
parent | d762e3bfb989cb0f95413c37142d18de1180bfbb (diff) | |
parent | 1d2756b5fe83419a24591ccc4cc403c3d58dd7af (diff) |
Merge branch '3dev' of git://3decibels.net/vndb into beta
+ ChangeLog update
Diffstat (limited to 'lib/VNDB/Handler/Discussions.pm')
-rw-r--r-- | lib/VNDB/Handler/Discussions.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/VNDB/Handler/Discussions.pm b/lib/VNDB/Handler/Discussions.pm index 1ec79c18..d8aa2f63 100644 --- a/lib/VNDB/Handler/Discussions.pm +++ b/lib/VNDB/Handler/Discussions.pm @@ -166,6 +166,10 @@ sub edit { { name => 'msg', maxlenght => 5000 }, ); + # check for double-posting + push @{$frm->{_err}}, 'doublepost' if $self->dbPostGet( + uid => $self->authInfo->{id}, tid => $tid, mindate => time - 30, results => 1, $tid ? () : (num => 1))->[0]{num}; + # parse and validate the boards my @boards; if(!$frm->{_err} && $frm->{boards}) { |