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:
parent
58b717a2a0
commit
9f6e4306cd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user