summaryrefslogtreecommitdiff
path: root/src/Network/Tox/DHT
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2017-11-05 23:24:11 -0500
committerjoe <joe@jerkface.net>2017-11-05 23:24:11 -0500
commit4b0cdcbb19d2e585aa764fce2d68f81d6b0aaf2c (patch)
treedbc839a17a30c3706aeba866ac9d05434ee6313f /src/Network/Tox/DHT
parentdf92dcd4acbb5d1b035cbca1f3290553e00afd2f (diff)
Removed broken 6-digit NoSpam specification.
Diffstat (limited to 'src/Network/Tox/DHT')
-rw-r--r--src/Network/Tox/DHT/Transport.hs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/Network/Tox/DHT/Transport.hs b/src/Network/Tox/DHT/Transport.hs
index bd108276..2e5649d3 100644
--- a/src/Network/Tox/DHT/Transport.hs
+++ b/src/Network/Tox/DHT/Transport.hs
@@ -264,7 +264,6 @@ data NoSpam = NoSpam !Word32 !(Maybe Word16)
264 264
265instance Read NoSpam where 265instance Read NoSpam where
266 readsPrec d s = case break isSpace s of 266 readsPrec d s = case break isSpace s of
267 (ws,rs) | (length ws == 6) -> base64decode rs (flip NoSpam Nothing <$> get) ws
268 (ws,rs) | (length ws == 8) -> base64decode rs (NoSpam <$> get <*> (Just <$> get)) ws 267 (ws,rs) | (length ws == 8) -> base64decode rs (NoSpam <$> get <*> (Just <$> get)) ws
269 (ws,rs) | (length ws == 12) -> base16decode rs (NoSpam <$> get <*> (Just <$> get)) ws 268 (ws,rs) | (length ws == 12) -> base16decode rs (NoSpam <$> get <*> (Just <$> get)) ws
270 _ -> [] 269 _ -> []