Call trim() on input string
This commit is contained in:
parent
35f6f1a677
commit
ea5f7b2517
@ -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": {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user