1
0
Fork 0

Handle case where frm and to have not been filled

This commit is contained in:
nemunaire 2016-03-06 21:45:13 +01:00
parent a0c3f6d2b3
commit 4c11c5e215
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class Socket(AbstractVisitor):
others = [to for to in msg.to if to != msg.designated]
# Avoid nick starting message when discussing on user channel
if len(others) != len(msg.to):
if len(others) == 0 or len(others) != len(msg.to):
res = Text(msg.message,
server=msg.server, date=msg.date,
to=msg.to, frm=msg.frm)