Allow custom port for homeserver

This commit is contained in:
Austen Adler 2017-10-24 16:49:51 -04:00
parent a4ff6e81c8
commit 4cd066540b

View File

@ -184,7 +184,7 @@ async def matrix_transaction(request):
for alias in aliases:
print(alias)
if alias.split('_')[0] != '#telegram' \
or alias.split(':')[-1] != MATRIX_HOST_BARE:
or not alias.endswith(MATRIX_HOST_BARE):
continue
tg_id = alias.split('_')[1].split(':')[0]