mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-39398 message: Prevent notice when sending Jabber messages
Not tracking the presence prevents a notice to be displayed during disconnect(), where the the jabber server attempts to subscribe to $CFG->jabberusername presence. As the server name does not include a resource identifier (stillwit@jabber.org/resource), an explode('/') fails.
This commit is contained in:
parent
2a6c9c1536
commit
81d6802709
1 changed files with 3 additions and 0 deletions
|
@ -73,6 +73,9 @@ class message_output_jabber extends message_output {
|
|||
|
||||
$conn = new XMPPHP_XMPP($CFG->jabberhost,$CFG->jabberport,$CFG->jabberusername,$CFG->jabberpassword,'moodle',$CFG->jabberserver);
|
||||
|
||||
// No need to track the presence during the sending message process.
|
||||
$conn->track_presence = false;
|
||||
|
||||
try {
|
||||
//$conn->useEncryption(false);
|
||||
$conn->connect();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue