More code

This commit is contained in:
Tulir Asokan
2017-11-21 00:09:39 +02:00
parent 217017099a
commit 5ef0a202a2
9 changed files with 145 additions and 116 deletions
+1 -1
View File
@@ -234,7 +234,7 @@ class MautrixTelegram {
const user = await this.getMatrixUser(evt.sender)
const cmdprefix = this.config.bridge.command_prefix
const cmdprefix = this.config.bridge.commands.prefix
if (evt.content.body.startsWith(cmdprefix + " ")) {
if (!user.whitelisted) {
this.botIntent.sendText(evt.room_id, "You are not authorized to use this bridge.")