Skip to content

Commit

Permalink
federation: fix delfed string
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMissx committed Jun 15, 2021
1 parent 301be65 commit 4bc4faa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions anjani_bot/plugins/federation.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ async def del_fed(self, message):
return await message.reply_text(await self.bot.text(chat_id, "user-no-feds"))

await message.reply_text(
await self.bot.text(chat_id, "del-fed-confirm", name=feds["name"]),
await self.bot.text(chat_id, "del-fed-confirm", feds["name"]),
reply_markup=InlineKeyboardMarkup(
[
[
Expand Down Expand Up @@ -171,7 +171,7 @@ async def del_fed_query(self, query):
LOGGER.debug(f"Deleting federation {fed_id}")
async with self.lock:
data = await self.feds_db.find_one_and_delete({"_id": fed_id})
await query.message.edit_text(await self.bot.text(chat_id, "fed-delete-one", data["name"]))
await query.message.edit_text(await self.bot.text(chat_id, "fed-delete-done", data["name"]))

@listener.on("joinfed", admin_only=True)
async def join_fed(self, message):
Expand Down
4 changes: 2 additions & 2 deletions language/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,11 @@ del-fed-confirm: |
Are you sure you want to delete this federation?
This action cannot be undone!
You will loose your entire ban list and your federation will be permanently lost!
\nConfirm deletion of **{name}**
\nConfirm deletion of **{}**
fed-confirm-text: "⚠️ Confirm Deletion ⚠️"
fed-abort-text: Abort
fed-delete-canceled: Federation deletion canceled
fed-delete-done: I have deleted your Federation!\nAll groups data that connect to **{}** are now removed.
fed-delete-done: I have deleted your Federation!\nAll groups that connect to **{}** are now federation-less.
fed-cant-two-feds: You cannot join two federations in one chat!
fed-invalid-id: Please enter a valid federation ID
fed-already-connected: This group is already connected to that federation!
Expand Down

0 comments on commit 4bc4faa

Please sign in to comment.