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:
parent
5fd216c720
commit
09c8b03705
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user