Assign moderator by IP address

Whoever enters a room first becomes moderator. Elegant simplicity until the moderator accidentally loses the connection. . . .

Would it be difficult to restrict moderator status to a list of approved IP addresses? (Or automatically assign moderator status by IP address?)