From ea5f7b25179f4a1ef9c5a7ddbedc1465a3edb8fa Mon Sep 17 00:00:00 2001 From: Mattias Erming Date: Sat, 27 Sep 2014 08:56:23 -0700 Subject: [PATCH] Call trim() on input string --- package.json | 2 +- src/client.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 56d419a7..a00027ed 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "shout", "description": "The self-hosted web IRC client", - "version": "0.37.3", + "version": "0.37.4", "author": "Mattias Erming", "preferGlobal": true, "bin": { diff --git a/src/client.js b/src/client.js index 0eeac25f..2c4fb789 100644 --- a/src/client.js +++ b/src/client.js @@ -200,7 +200,7 @@ Client.prototype.connect = function(args) { Client.prototype.input = function(data) { var client = this; - var text = data.text; + var text = data.text.trim(); var target = client.find(data.target); if (text.charAt(0) !== "/") { text = "/say " + text;