mirror of https://github.com/movim/movim
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
513 B
26 lines
513 B
<?php
|
|
|
|
class Help extends \Movim\Widget\Base
|
|
{
|
|
function load()
|
|
{
|
|
}
|
|
|
|
function ajaxAddChatroom()
|
|
{
|
|
$room = 'movim@conference.movim.eu';
|
|
|
|
$r = new Rooms;
|
|
$r->ajaxChatroomAdd([
|
|
'jid' => $room,
|
|
'name'=> 'Movim Chatroom',
|
|
'nick' => false,
|
|
'autojoin' => 0
|
|
]);
|
|
|
|
$r->ajaxJoin('movim@conference.movim.eu');
|
|
|
|
$this->rpc('MovimUtils.redirect', $this->route('chat', [$room, 'room']));
|
|
}
|
|
}
|
|
|