diff --git a/bot.py b/bot.py index d159933..0ec26e8 100755 --- a/bot.py +++ b/bot.py @@ -29,9 +29,9 @@ class Server(BaseServer): print("Line Params: ", line.params) if "PRIVMSG" in line.command and any(channel in line.params[0] for channel in self.params.autojoin): - chan = self.channels[line.params[0]].name + chan = self.channels[line.params[0].lstrip("@")].name if line.params[1].startswith(".match"): - channel = self.channels[line.params[0]] + channel = self.channels[line.params[0].lstrip("@")] if len(line.params[1].split(" ")) < 2: await self.send(build("PRIVMSG", [chan, "ERROR: game not specified"])) else: