Skip to content
Snippets Groups Projects
Commit e3793956 authored by deuce's avatar deuce
Browse files

Don't send the user password to non vaporware JS IRC Servers

Fix command-line parsing.
parent a9e49310
No related branches found
No related tags found
No related merge requests found
...@@ -37,6 +37,7 @@ while(1) { ...@@ -37,6 +37,7 @@ while(1) {
case "-a": case "-a":
real_names=false; real_names=false;
argv.shift(); argv.shift();
break;
default: default:
break LOOP; break LOOP;
} }
...@@ -63,7 +64,8 @@ if(!sock.connect(irc_server,irc_port)) { ...@@ -63,7 +64,8 @@ if(!sock.connect(irc_server,irc_port)) {
clean_exit(); clean_exit();
} }
sock.send("PASS "+user.security.password+"\r\n"); // sock.send("PASS "+user.security.password+"\r\n"); // for futire use with JS IRC server
sock.send("PASS \r\n");
if (nick=="") if (nick=="")
nick=user.alias; nick=user.alias;
nick=nick.replace(/\s+/g,"_"); nick=nick.replace(/\s+/g,"_");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment