XMPP-0.0.2: XMPP library

Network.XMPP.MUC

Description

Implementation of Multi-User Chat, according to XEP-0045. This API needs more thought and will change.

Synopsis

Documentation

matchesBare :: String -> StanzaPredicateSource

Return true if the stanza is from a JID whose "username@server" part matches the given string.

joinGroupchatSource

Arguments

:: String

Nickname to use

-> String

JID of room

-> String

Password of room. Use empty if no.

-> XMPP Integer

Error number. Zero if joining room succeeded.

Join groupchat.

leaveGroupchat :: String -> XMPP ()Source

Leave groupchat.

isGroupchatMessage :: StanzaPredicateSource

Return true if the stanza is a message of type "groupchat".

isGroupchatPrivmsg :: String -> StanzaPredicateSource

Return true if the stanza is a private message in the named room.

sendGroupchatMessageSource

Arguments

:: String

JID of chat room

-> String

Text of message

-> XMPP () 

Send a groupchat message.

sendGroupchatPrivateMessageSource

Arguments

:: String

Nick of recipient

-> String

JID of chat room

-> String

Text of message

-> XMPP () 

Send a private message in a chat room.