summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/dhtd.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/dhtd.hs b/examples/dhtd.hs
index f6a838aa..fb42597e 100644
--- a/examples/dhtd.hs
+++ b/examples/dhtd.hs
@@ -1545,8 +1545,8 @@ vShowThem (Tox.ViewSnapshot { vTheirNick, vTheirStatus, vTheirStatusMsg, vTheirT
1545showMsg ::(Word32, (Bool,(Tox.ViewSnapshot, InOrOut Tox.CryptoMessage))) -> B.ByteString 1545showMsg ::(Word32, (Bool,(Tox.ViewSnapshot, InOrOut Tox.CryptoMessage))) -> B.ByteString
1546showMsg (n,(flg,(snapshot,iocm))) = B.concat [bool " " "h " flg, showmsg' (snapshot,iocm)] 1546showMsg (n,(flg,(snapshot,iocm))) = B.concat [bool " " "h " flg, showmsg' (snapshot,iocm)]
1547 where 1547 where
1548 showmsg' (snapshot,In cm) = B.concat [Tox.vNick snapshot,"> ", pshow cm] 1548 showmsg' (snapshot,In cm) = B.concat [Tox.vTheirNick snapshot,"> ", pshow cm]
1549 showmsg' (snapshot,Out cm) = B.concat [utf8boldify (Tox.vNick snapshot),": ",pshow cm] 1549 showmsg' (snapshot,Out cm) = B.concat [{-utf8boldify-} (Tox.vNick snapshot),": ",pshow cm]
1550 utf8boldify s = boldify (T.decodeUtf8With E.lenientDecode s) 1550 utf8boldify s = boldify (T.decodeUtf8With E.lenientDecode s)
1551 where 1551 where
1552 boldify :: T.Text -> B.ByteString 1552 boldify :: T.Text -> B.ByteString