Fix !info crash

This commit is contained in:
Joscha 2016-05-23 20:31:34 +02:00
parent 2a0eb98b71
commit a48b35e54d

View file

@ -51,6 +51,8 @@ class InfoBot(yaboli.Bot):
msg = "Sorry, the --list and --name options can't be used simultaneously." msg = "Sorry, the --list and --name options can't be used simultaneously."
elif ("name" in options and options["name"] is not True) or "list" in options: elif ("name" in options and options["name"] is not True) or "list" in options:
clients = []
if "name" in options: if "name" in options:
name = self.room.mentionable(options["name"]).lower() name = self.room.mentionable(options["name"]).lower()