RelayLink: fix bug where 'nicks' would miss certain networks (we shouldn't be using regex at all here!)

This commit is contained in:
GLolol 2014-07-02 22:56:39 -07:00
parent 92667d3784
commit 1ca254ab51

View File

@ -451,7 +451,9 @@ class RelayLink(callbacks.Plugin):
channels = relay.targetIRC.state.channels
found = False
for key, channel_ in channels.items():
if re.match(relay.targetChannel, key):
#if re.match(relay.targetChannel, key):
if ircutils.toLower(relay.targetChannel) \
== ircutils.toLower(key):
found = True
break
if not found: