Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Little fix for example/chat #774

Closed
wants to merge 4 commits into
from

Conversation

Projects
None yet
2 participants

M1cRO commented Mar 1, 2012

Little fix for example/chat

  • Don't send empty message
Contributor

rauchg commented Mar 1, 2012

WIll fail for 0. How about if (msg.length)

M1cRO commented Mar 1, 2012

hm, work for "0", but "if (msg.length)" looks better

Contributor

rauchg commented Mar 1, 2012

If the message is 0 it will get incorrectly filtered out, won't it ?

M1cRO commented Mar 1, 2012

no, all looks fine
screenshot: http://imm.io/hDN7
please use "if (msg.length)" this right way

M1cRO commented Mar 1, 2012

Changed msg to msg.length

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment