summaryrefslogtreecommitdiff
path: root/Hsbot/Plugin
diff options
context:
space:
mode:
authorJulien Dessaux2011-11-03 18:51:57 +0100
committerJulien Dessaux2011-11-03 18:51:57 +0100
commitcc8053fc8008dd5aeca386c3d20b5f0a0d510b18 (patch)
tree551f8700ebca8365681045079b1ff91b142b97a7 /Hsbot/Plugin
parentUpdated to support the latest version of the tls module. (diff)
downloadhsbot-cc8053fc8008dd5aeca386c3d20b5f0a0d510b18.tar.gz
hsbot-cc8053fc8008dd5aeca386c3d20b5f0a0d510b18.tar.bz2
hsbot-cc8053fc8008dd5aeca386c3d20b5f0a0d510b18.zip
Fixed a bug in the quote module
Diffstat (limited to 'Hsbot/Plugin')
-rw-r--r--Hsbot/Plugin/Quote.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Hsbot/Plugin/Quote.hs b/Hsbot/Plugin/Quote.hs
index d7044fd..de2bd34 100644
--- a/Hsbot/Plugin/Quote.hs
+++ b/Hsbot/Plugin/Quote.hs
@@ -84,7 +84,7 @@ isQuoteLockedFor quoteId requestor now = do
Just (owner, lockStamp) ->
if owner == requestor
then return $ Just True
- else return . Just $ (addUTCTime 300 lockStamp > now) -- Is the entry older than 5 min?
+ else return . Just $ (addUTCTime 300 lockStamp < now) -- Is the entry older than 5 min?
Nothing -> return $ Just True
Nothing -> return Nothing