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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user