Skip to content
Snippets Groups Projects
Commit 8da5b04c authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix server.js line 306: TypeError: p[2] is undefined

JavaScript is lovely at data validation ... not!
parent 395d4a1e
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -301,7 +301,7 @@ function Server_Work(cmdline) {
));
break;
case "INVITE":
if (!p[1] || origin.server)
if (!p[1] || p[2] === undefined || origin.server)
break;
tmp = Channels[p[2].toUpperCase()];
if (!tmp)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment