mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-07 01:06:48 +02:00
bah, group handling needs some further discussion ... I'm done with it for M-2
git-svn-id: file:///svn/phpbb/trunk@4440 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -296,6 +296,22 @@ class Jabber
|
||||
}
|
||||
}
|
||||
|
||||
function SendPresence($type = NULL, $to = NULL, $status = NULL, $show = NULL, $priority = NULL)
|
||||
{
|
||||
$xml = '<presence';
|
||||
$xml .= ($to) ? " to='$to'" : '';
|
||||
$xml .= ($type) ? " type='$type'" : '';
|
||||
$xml .= ($status || $show || $priority) ? ">\n" : " />\n";
|
||||
|
||||
$xml .= ($status) ? " <status>$status</status>\n" : '';
|
||||
$xml .= ($show) ? " <show>$show</show>\n" : '';
|
||||
$xml .= ($priority) ? " <priority>$priority</priority>\n" : '';
|
||||
|
||||
$xml .= ($status || $show || $priority) ? "</presence>\n" : '';
|
||||
|
||||
return ($this->SendPacket($xml)) ? TRUE : FALSE;
|
||||
}
|
||||
|
||||
function SendError($to, $id = NULL, $error_number, $error_message = NULL)
|
||||
{
|
||||
$xml = "<iq type='error' to='$to'";
|
||||
|
Reference in New Issue
Block a user