1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-19 06:51:33 +02:00

[ticket/17135] Refactor messenger code to services [ci skip]

PHPBB3-17135
This commit is contained in:
rxu
2023-06-06 16:41:55 +07:00
parent 5be1f5d5c9
commit 1f952ca6d8
6 changed files with 99 additions and 57 deletions

View File

@@ -393,6 +393,19 @@ class jabber extends base
$this->to[$pos]['name'] = trim($realname);
}
/**
* Inits/resets the data to default
*
* @return void
*/
public function reset()
{
$this->msg = '';
$this->to = [];
parent::reset();
}
/**
* Sets the use of messenger queue flag
*
@@ -455,6 +468,8 @@ class jabber extends base
}
unset($addresses);
$this->reset();
return true;
}