Fix privmsg message split on :
This commit is contained in:
parent
b6c4d2c391
commit
79251393ff
@ -55,7 +55,7 @@ class Message:
|
|||||||
if self.cmd == 'PRIVMSG':
|
if self.cmd == 'PRIVMSG':
|
||||||
self.content = words[3]
|
self.content = words[3]
|
||||||
if self.content[0] == ':':
|
if self.content[0] == ':':
|
||||||
self.content = line.split(':', 2)[2]
|
self.content = ' '.join(words[3:])[1:]
|
||||||
else:
|
else:
|
||||||
print (line)
|
print (line)
|
||||||
else:
|
else:
|
||||||
@ -64,7 +64,7 @@ class Message:
|
|||||||
self.channel = words[2]
|
self.channel = words[2]
|
||||||
self.content = words[3]
|
self.content = words[3]
|
||||||
if self.content[0] == ':':
|
if self.content[0] == ':':
|
||||||
self.content = line.split(':', 2)[2]
|
self.content = ' '.join(words[3:])[1:]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def is_owner(self):
|
def is_owner(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user