Hollywood as an industry may be excited about drones but the Southern California city of West Hollywood is not. Three months ago, an errant drone in West Hollywood crashed into some electrical wires, cutting one to the ground. The collision caused almost 700 residents to lose power for three hours, according to the Los Angeles Times.

Tuesday evening at West Hollywood’s city council meeting, city officials passed an ordinance (PDF) requiring every drone operator flying in the city to get a permit for their drone from city officials. (That’s in addition to the registration drone operators are now required to get from the Federal Aviation Authority (FAA).) The city said it would give each registered drone a sticker with an identification number which must be clearly visible on the drone from the ground.

In addition to this, the ordinance requires that drone operators comply with FAA regulations by avoiding piloted aircraft, maintaining a line-of-sight view of the drone, and flying the drone no higher than 400 feet above the ground. In addition, drone pilots can’t fly their drones at night without explicit permission from the FAA, nor can they fly the drone within 25 feet of another person (excluding takeoff and landing).

The West Hollywood ordinance went on to forbid taking photo, video, or audio footage of any person or private property that "has a reasonable expectation of privacy (including, but not limited to, inside a private office and inside a hotel room).” According to the Los Angeles Times, a West Hollywood resident told the city council that he was disturbed by a “Peeping Tom” while "sitting on his home’s terrace, reading the newspaper in a bathing suit.” The drone was hovering about 15 feet away from him, and when he approached it, it flew away.

The ordinance also specified that drones would not be permitted to fly "in a manner that interferes with firefighting, police activity, or emergency response activity.” Over the summer, California had a notable problem with drone operators flying their aircraft over wildfires, disrupting the flight patterns of fire-fighting planes.

While it’s prohibited to fly drones in any temporarily restricted areas declared by the US Forest Service, California lawmakers lobbied for stricter punishments for people who violate that prohibition. But in October, California Governor Jerry Brown vetoed plans to punish scofflaw drone pilots more harshly, with increased fines and possible jail time. "Each of these bills creates a new crime—usually by finding a novel way to characterize and criminalize conduct that is already proscribed,” the governor said at the time. "Before we keep going down this road, I think we should pause and reflect how our system of criminal justice could be made more human, more just and more cost-effective."

Violation of the new West Hollywood ordinance will be considered a misdemeanor.

The Los Angeles Times also notes that the City of Los Angeles is cracking down on drones as well. In October, the city made it a misdemeanor to violate any of the FAA’s drone flight rules, and this week two men were accused of violating those rules by flying too close to a hospital heliport in one case, and interfering with an LAPD air unit in another case. Each of the men could face up to six months in jail under the city’s new rules.