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

Merge branch 'brklauss75/sbbs-master'

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