Ejemplo n.º 1
0
 public void LeaveRoom(Room room)
 {
     _logger.DebugFormat("   LeaveRoom: Id: [{0}] Nickname: [{1}]", room.Id, room.NickName);
     var jid = new Jid(room.Id);
     _mucManager.LeaveRoom(jid, room.NickName);
     RemoveRoomFromGrabbers(jid);
 }
Ejemplo n.º 2
0
        public void JoinRoom(Room room)
        {
            _logger.DebugFormat("   JoinRoom: Id: [{0}] Nickname: [{1}]", room.Id, room.NickName);

            if (!room.Id.Contains(_roomDomainSuffix))
                room.Id += _roomDomainSuffix;

            var jid = new Jid(room.Id);
            _mucManager.JoinRoom(jid, room.NickName, true);
            AddRoomToGrabbers(jid, null);
        }