|
|
|
@ -61,8 +61,10 @@ xmppStartStream = runErrorT $ do |
|
|
|
hostname' <- gets sHostname |
|
|
|
hostname' <- gets sHostname |
|
|
|
case hostname' of |
|
|
|
case hostname' of |
|
|
|
Nothing -> throwError StreamConnectionError |
|
|
|
Nothing -> throwError StreamConnectionError |
|
|
|
Just hostname -> lift . pushOpenElement $ |
|
|
|
Just hostname -> lift $ do |
|
|
|
pickleElem pickleStream ("1.0", Nothing, Just hostname) |
|
|
|
pushXmlDecl |
|
|
|
|
|
|
|
pushOpenElement $ |
|
|
|
|
|
|
|
pickleElem pickleStream ("1.0", Nothing, Just hostname) |
|
|
|
features <- ErrorT . pullToSink $ runErrorT xmppStream |
|
|
|
features <- ErrorT . pullToSink $ runErrorT xmppStream |
|
|
|
modify (\s -> s {sFeatures = features}) |
|
|
|
modify (\s -> s {sFeatures = features}) |
|
|
|
return () |
|
|
|
return () |
|
|
|
|