diff --git a/ircbot/bot.py b/ircbot/bot.py index 2c27d35..c060284 100644 --- a/ircbot/bot.py +++ b/ircbot/bot.py @@ -158,7 +158,7 @@ class DrReactor(irc.client.Reactor): # ignore the first word, a nick, if the speaker is the bridge try: - channel = IrcChannel.objects.get(name=sent_location) + channel = IrcChannel.objects.get(server=connection.server_config, name=sent_location) if sender_nick == channel.discord_bridge: short_what = ' '.join(what.split(' ')[1:]) match = re.match(addressed_pattern, short_what, re.IGNORECASE)