rate limiting for message sending

This commit is contained in:
Mark Haines 2014-09-02 18:22:15 +01:00
parent 0a1260b03a
commit 780548b577
4 changed files with 7 additions and 4 deletions

View file

@ -49,6 +49,7 @@ class RoomCreationHandler(BaseRoomHandler):
SynapseError if the room ID was taken, couldn't be stored, or
something went horribly wrong.
"""
self.ratelimit(user_id)
if "room_alias_name" in config:
room_alias = RoomAlias.create_local(