This commit is contained in:
Matthew Hodgson 2018-01-19 00:33:51 +00:00
parent 81d037dbd8
commit 0af58f14ee
1 changed files with 1 additions and 2 deletions

View File

@ -68,8 +68,7 @@ def check_3pid_allowed(hs, medium, address):
for constraint in hs.config.registrations_require_3pid:
logger.debug("Checking 3PID %s (%s) against %s (%s)" % (
address, medium, constraint['pattern'], constraint['medium']
)
)
))
if (
medium == constraint['medium'] and
re.match(constraint['pattern'], address)