fix non-uniqueness oversight is checking for discord bridge
This commit is contained in:
parent
0d691ff431
commit
b02efb06dd
@ -158,7 +158,7 @@ class DrReactor(irc.client.Reactor):
|
|||||||
|
|
||||||
# ignore the first word, a nick, if the speaker is the bridge
|
# ignore the first word, a nick, if the speaker is the bridge
|
||||||
try:
|
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:
|
if sender_nick == channel.discord_bridge:
|
||||||
short_what = ' '.join(what.split(' ')[1:])
|
short_what = ' '.join(what.split(' ')[1:])
|
||||||
real_source = re.sub(r'^<(\S+)> .*', r'\1!user@discord-bridge', what)
|
real_source = re.sub(r'^<(\S+)> .*', r'\1!user@discord-bridge', what)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user