summaryrefslogtreecommitdiff
path: root/Announcer.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2018-05-30 23:13:18 -0400
committerjoe <joe@jerkface.net>2018-05-30 23:13:18 -0400
commit7534881d7b6a211a27300426903cff1abc7a50ba (patch)
treebc047921a62165bab80da5615974ebaba233d414 /Announcer.hs
parent40c5a8aec30538cad0e43027aa6beec2ace8d0fc (diff)
Stop announcing toxid when xmpp clients disconnect.
Diffstat (limited to 'Announcer.hs')
-rw-r--r--Announcer.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Announcer.hs b/Announcer.hs
index 72d70a1e..c66d26b4 100644
--- a/Announcer.hs
+++ b/Announcer.hs
@@ -40,6 +40,9 @@ import qualified GHC.Generics as Generics
40newtype AnnounceKey = AnnounceKey ByteString 40newtype AnnounceKey = AnnounceKey ByteString
41 deriving (Hashable,Ord,Eq) 41 deriving (Hashable,Ord,Eq)
42 42
43instance Show AnnounceKey where
44 show (AnnounceKey bs) = "AnnounceKey " ++ show (Char8.unpack bs)
45
43packAnnounceKey :: Announcer -> String -> STM AnnounceKey 46packAnnounceKey :: Announcer -> String -> STM AnnounceKey
44packAnnounceKey _ = return . AnnounceKey . Char8.pack 47packAnnounceKey _ = return . AnnounceKey . Char8.pack
45 48