示例#1
0
文件: Rooms.php 项目: Anon215/movim
 /**
  * @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();
 }
示例#2
0
文件: Bookmark.php 项目: Nyco/movim
 function ajaxBookmarkMucJoin($jid, $nickname)
 {
     $p = new Muc();
     $p->setTo($jid)->setNickname($nickname)->request();
 }