From 7002874bbb78de37b4d6bf967fb3bd98c74e0834 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Fri, 29 Aug 2014 15:49:32 -0500 Subject: [PATCH] Minor fix for messages with spaces only --- lib/channel/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/channel/chat.js b/lib/channel/chat.js index ce674612..46eefbc8 100644 --- a/lib/channel/chat.js +++ b/lib/channel/chat.js @@ -120,7 +120,7 @@ ChatModule.prototype.handleChatMsg = function (user, data) { data.msg = data.msg.substring(0, 240).replace(/[\x00-\x08\x0a-\x1f]+/g, " "); // Disallow blankposting - if (!data.msg) { + if (!data.msg.trim()) { return; }