From b02efb06ddc88feff7fc26d8ce1f7a88a89fcb79 Mon Sep 17 00:00:00 2001 From: Brian Stephan Date: Thu, 4 May 2023 17:28:55 -0500 Subject: [PATCH] fix non-uniqueness oversight is checking for discord bridge --- ircbot/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ircbot/bot.py b/ircbot/bot.py index c42892e..a95a61a 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:]) real_source = re.sub(r'^<(\S+)> .*', r'\1!user@discord-bridge', what)