Function __global->_deal_with_chatcode_newroom
Definitions
sources/chat.php
- Parse room creation chat code tag.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $pm_user | string | No | No | required parameter | N/A | N/A | The room name |
| $pm_message | string | No | No | required parameter | N/A | N/A | Comma-separated list of members to allow in |
| $username | SHORT_TEXT | No | No | required parameter | N/A | N/A | The username of who made this chatcode |
| $text | string | No | No | required parameter | N/A | N/A | The text we are using |
| $max_messages | ?integer | No | No | required parameter | N/A | N/A | The maximum number of messages to be returned (null: no maximum) |
Returns
- A pair: whether the message was deleted, and the new text of the message
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Parse room creation chat code tag.
*
* @param string $pm_user The room name
* @param string $pm_message Comma-separated list of members to allow in
* @param SHORT_TEXT $username The username of who made this chatcode
* @param string $text The text we are using
* @param ?integer $max_messages The maximum number of messages to be returned (null: no maximum)
* @return array A pair: whether the message was deleted, and the new text of the message
*/
function _deal_with_chatcode_newroom(string $pm_user, string $pm_message, string $username, string $text, ?int $max_messages) : array
* Parse room creation chat code tag.
*
* @param string $pm_user The room name
* @param string $pm_message Comma-separated list of members to allow in
* @param SHORT_TEXT $username The username of who made this chatcode
* @param string $text The text we are using
* @param ?integer $max_messages The maximum number of messages to be returned (null: no maximum)
* @return array A pair: whether the message was deleted, and the new text of the message
*/
function _deal_with_chatcode_newroom(string $pm_user, string $pm_message, string $username, string $text, ?int $max_messages) : array

