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

(cherry-picked from commit 09c8b03705)
This commit is contained in:
James Lu 2018-01-22 08:15:04 -08:00
parent 58b717a2a0
commit 9f6e4306cd

View File

@ -150,7 +150,7 @@ def getChannelPair(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