Skip to content
Snippets Groups Projects
Commit 46fc3752 authored by Randy Sommerfeld's avatar Randy Sommerfeld
Browse files

Try a more friendly way of port validation in CONNECT

parent de47eee5
No related branches found
No related tags found
No related merge requests found
......@@ -1641,7 +1641,7 @@ function IRCClient_do_connect(con_server,con_port) {
con_port = con_cline.port;
if (!con_port && !con_cline.port)
con_port = String(Default_Port);
if (!con_port.match(/^[0-9]+$/)) {
if (con_port != parseInt(con_port)) {
this.server_notice("Invalid port: " + con_port);
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment