Skip to content

Commit

Permalink
Fix case of word in error response
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Apr 30, 2023
1 parent de33b55 commit 6b8e265
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mautrix_telegram/commands/portal/bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ async def bridge(evt: CommandEvent) -> EventID:
return await evt.reply(f"{that_this} room is already a portal room.")

if not await user_has_power_level(room_id, evt.az.intent, evt.sender, "bridge"):
return await evt.reply(f"You do not have the permissions to bridge {that_this} room.")
return await evt.reply(
f"You do not have the permissions to bridge {that_this.lower()} room."
)

# The /id bot command provides the prefixed ID, so we assume
tgid_str = evt.args[0]
Expand Down

0 comments on commit 6b8e265

Please sign in to comment.