diff --git a/app/modules/info.py b/app/modules/info.py index df2f0c6..256e3d3 100644 --- a/app/modules/info.py +++ b/app/modules/info.py @@ -36,7 +36,8 @@ class InfoModule(niobot.Module): if ctx.event.sender not in room_obj.users: continue ratio = fuzz.ratio(room, room_obj.display_name) - matches.append((room_obj, ratio)) + if ratio > 1: + matches.append((room_obj, ratio)) matches.sort( key=lambda v: v[1], reverse=True