From cc8053fc8008dd5aeca386c3d20b5f0a0d510b18 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Thu, 3 Nov 2011 18:51:57 +0100 Subject: Fixed a bug in the quote module --- Hsbot/Plugin/Quote.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3