correct _split_line() for empty values

This commit is contained in:
coderkun 2014-12-02 20:10:01 +01:00
parent 394ebb2693
commit 76e2879fd2

4
mcg.py
View file

@ -565,8 +565,8 @@ class Client(Base):
def _split_line(self, line):
parts = line.split(': ')
return parts[0].lower(), ': '.join(parts[1:])
parts = line.split(':')
return parts[0].lower(), ':'.join(parts[1:]).lstrip()
def _set_connection_status(self, status):