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;