inp_val = inp_val.trim();\r
\r
if (inp_val) {\r
- this.processInput(inp.val());\r
+ this.processInput(inp_val);\r
\r
- this.buffer.push(inp.val());\r
+ this.buffer.push(inp_val);\r
this.buffer_pos = this.buffer.length;\r
}\r
\r
params = command_raw.split(' ');\r
if (params[0][0] === '/') {\r
command = params[0].substr(1).toLowerCase();\r
- params = params.splice(1);\r
+ params = params.splice(1, params.length - 1);\r
} else {\r
// Default command\r
command = 'msg';\r