3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 09:19:23 +01:00

global: always coerse channel argument to str

These can be type int as of v3.0, e.g. in pylink-discord
This commit is contained in:
James Lu 2020-03-30 13:09:33 -07:00
parent a19f257bd8
commit a143d98ac1

View File

@ -37,7 +37,7 @@ def g(irc, source, args):
skip = False skip = False
for exempt in local_exempt_channels: for exempt in local_exempt_channels:
if ircd.match_text(exempt, channel): if ircd.match_text(exempt, str(channel)):
log.debug('global: Skipping channel %s%s for exempt %r', netname, channel, exempt) log.debug('global: Skipping channel %s%s for exempt %r', netname, channel, exempt)
skip = True skip = True
break break