xmppJidGetUser()
This function allows you to query the user part of a jabber ID.
Synopsis
string xmppJidGetUser(string jid);
Parameter
Parameter | Description |
---|---|
jid | Jabber ID such as winccoa.etm@jabber.at. |
Return Value
Returns the user part of a jabber ID.
Errors
Errors can be queried via getLastError().
Description
This function allows you to query the user part of a jabber ID.
The following example shows how to query the user part of a jabber ID.
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);
/* Returns the user part of a jid, e.g. */
string gu = xmppJidGetUser("winccoa.etm@jabber.at");
DebugN("Returns the user part of a jid", gu);
}
Assignment
Availability
CTRL