add a separate field for the JID

This commit is contained in:
Joey Hess 2012-10-24 19:09:02 -04:00
parent 145202f21e
commit 52d380d7f0

View file

@ -33,7 +33,7 @@ pushNotifierThread st dstatus pushnotifier = NamedThread thisThread $ do
v <- runThreadState st $ getXMPPCreds
case v of
Nothing -> nocreds
Just c -> case parseJID (xmppUsername c) of
Just c -> case parseJID (xmppJID c) of
Nothing -> nocreds
Just jid -> void $ client c jid
where
@ -75,6 +75,9 @@ data XMPPCreds = XMPPCreds
, xmppPassword :: T.Text
, xmppHostname :: HostName
, xmppPort :: Int
{- Something like username@hostname, but not necessarily the same
- username or hostname used to connect to the server. -}
, xmppJID :: T.Text
}
deriving (Read, Show)