Skip to content
Snippets Groups Projects
Commit 3dad4415 authored by Brian Klauss's avatar Brian Klauss
Browse files

Modified default behavior of irc.js to use globally defined interface from subs.ini.

parent 06da1523
No related branches found
No related tags found
2 merge requests!463MRC mods by Codefenix (2024-10-20),!69Modified default behavior of irc.js to use globally defined interface from subs.ini.
......@@ -112,6 +112,7 @@ if(argv[cmdarg]!=undefined)
default_channel=default_channel.replace(/\s+/g,"_");
sock=new Socket();
sock.bind(0,server.interface_ip_address); // Use globally defined intereface in sbbs.ini
history=new History();
screen=new Screen();
......@@ -154,7 +155,7 @@ while(!quit) {
sock.close();
clean_exit();
}
if(!client.socket.is_connected) {
send_cmd("QUIT",":Dropped Carrier");
quit=1;
......@@ -484,7 +485,7 @@ function handle_command(tag, prefix, command, message) {
}
screen.print_line("\x01N\x01B\1hPeople in "+tmp_str+" right now: "+message.join(" "));
break;
case "366": // End of Names
break;
......@@ -929,7 +930,7 @@ function Channels() {
function Channels_nick_change(from,to) {
var i=0;
var j=0;
for(i=0;i<this.channel.length;i++) {
for(j=0;j<this.channel[i].nick.length;j++) {
if(this.channel[i].nick[j].toUpperCase()==from.toUpperCase()) {
......@@ -1089,7 +1090,7 @@ function Screen_print_line(line) {
var ending=null;
var codes=[null];
var ret=null;
ending="";
codes=p1.split(",");
p1=codes[0];
......@@ -1285,7 +1286,7 @@ function Screen_update_input_line() {
if(line_start+78 < line_len) {
line_str=line_str.slice(0,77)+'+';
}
console.line_counter=0; // defeat pause
console.ansi_gotoxy(1,console.screen_rows);
console.clearline();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment