Fix privmsg message split on :

This commit is contained in:
Némunaire 2012-07-10 12:12:33 +02:00
parent b6c4d2c391
commit 79251393ff

View File

@ -55,7 +55,7 @@ class Message:
if self.cmd == 'PRIVMSG':
self.content = words[3]
if self.content[0] == ':':
self.content = line.split(':', 2)[2]
self.content = ' '.join(words[3:])[1:]
else:
print (line)
else:
@ -64,7 +64,7 @@ class Message:
self.channel = words[2]
self.content = words[3]
if self.content[0] == ':':
self.content = line.split(':', 2)[2]
self.content = ' '.join(words[3:])[1:]
@property
def is_owner(self):