/** * @brief Join a chatroom */ function ajaxJoin($room, $nickname = false) { if (!$this->validateRoom($room)) { return; } $p = new Muc(); $p->setTo($room); if ($nickname == false) { $s = Session::start(); $nickname = $s->get('username'); } $p->setNickname($nickname); $p->request(); }
function ajaxBookmarkMucJoin($jid, $nickname) { $p = new Muc(); $p->setTo($jid)->setNickname($nickname)->request(); }