Skip to content
Snippets Groups Projects
Commit 676052b3 authored by samari-k's avatar samari-k
Browse files

debugged "link nicht gefunden"

parent e8f9c8cf
No related branches found
No related tags found
1 merge request!74Links verwalten
......@@ -106,7 +106,7 @@ class Links(commands.Cog):
if channel_links := self.links.get(str(ctx.channel.id)):
if topic_links := channel_links.get(topic):
if topic_links.get(title):
if title in topic_links:
topic_links.pop(title)
if not topic_links:
channel_links.pop(topic)
......@@ -160,6 +160,7 @@ class Links(commands.Cog):
)
@cmd_links.command(name="edit-link", aliases=["el"])
async def cmd_edit_link(self, ctx, topic, title, new_title, new_topic=None, new_link=None):
topic = topic.lower()
if not new_topic:
new_topic = topic
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment