xmppRoomGetSubject()
This function allows you to query the subject of a chat room.
Synopsis
string xmppRoomGetSubject(int clientId, string room);
Parameter
Parameter | Description |
---|---|
clientid | The unique client id for the client channel. The id is returned by the xmppOpen() function. |
room | The room (name )whose subject is queried, e.g. ("roomname@conference.jabber.at") |
Return Value
Returns the subject of a chat room.
Errors
Errors can be queried via getLastError().
Description
This function allows you to query the subject of a chat room.
The following example shows how to set and query the subject of a chat room.
Note: You have to replace the code:
p =
xmppOpen("winccoa.etm@jabber.at","123677", "callback", m); DebugN("xmppOpen:",
p);
by your own user and password. This code is an example!#uses "CtrlXmpp"
int p;
main(mapping event)
{
p = xmppOpen("winccoa.etm@jabber.at","123677");
DebugN("xmppOpen:", p);
/*Set the room's subject */
int m = xmppRoomSetSubject(p, "general chat", "Test");
/* Get the room's subject */
string gs = xmppRoomGetSubject(p, "general chat");
DebugN("Subject of the general chat:", gs);
}
Assignment
Availability
CTRL