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

automode: fix handling of channels with multiple #'s in them

This commit is contained in:
James Lu 2018-01-22 08:15:04 -08:00
parent 5fd216c720
commit 09c8b03705

View File

@ -150,7 +150,7 @@ def _get_channel_pair(irc, source, chanpair, perm=None):
"""
log.debug('(%s) Looking up chanpair %s', irc.name, chanpair)
try:
network, channel = chanpair.split('#')
network, channel = chanpair.split('#', 1)
except ValueError:
raise ValueError("Invalid channel pair %r" % chanpair)
channel = '#' + channel