Commit 0ed2c512 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Fix TypeError: args[1].toUpperCase is not a function

Issue #389 reported by Keyop:
srvc 0324 IMAPS <Keyop> !JavaScript  /sbbs/exec/imapservice.js line 653:
TypeError: args[1].toUpperCase is not a function

I'm not sure how you reproduce this error or what type args[1] is
(apparently, not a string), but this fix it regardless. Please let me
parent 49bae37e
......@@ -649,7 +649,7 @@ function handle_command(command, args, defs)
function parse_command(line)
function execute_line(args) {
if(args.length >= 2) {
if(args.length >= 2 && typeof(args[1]) == 'string') {
if(handle_command(command, args, any_state_command_handlers))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment