Fix MSC search yielding bad thingy

This commit is contained in:
Nexus 2024-09-20 01:25:25 +01:00
parent cace903669
commit d1efcf91f1

View file

@ -134,7 +134,7 @@ class MSCGetter(niobot.Module):
msg = await ctx.respond("Searching for relevant MSCs with query %r..." % number_or_query[1:])
results = await self.search_for_msc(number_or_query[1:])
if not results:
await msg.edit("No MSCs matched your query.")
return await msg.edit("No MSCs matched your query.")
lines = []
for pr in results: