diff --git a/plugins/automode.py b/plugins/automode.py index d0ebe48..83da92d 100644 --- a/plugins/automode.py +++ b/plugins/automode.py @@ -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