Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit b51a6f30 authored by rswindell's avatar rswindell

Fix Nelgin-reported issue:

<nelgin> If sysop used /die then sbbs irc client quits with an ugly message :)
<nelgin> !JavaScript  irc.js line 625: TypeError: sock.recvline() is null

Also fixed the spelling of "receive_command"
parent a90d1523
......@@ -136,7 +136,7 @@ while(!quit) {
}
if(sock.poll(.01)) {
recieve_command();
receive_command();
screen.update(0);
}
else
......@@ -617,12 +617,15 @@ function handle_command(prefix,command,message) {
}
}
function recieve_command() {
function receive_command() {
var prefix="";
var command=null;
var message;
if(sock.poll(0)) {
message=sock.recvline().split(" ");
message=sock.recvline();
if(!message)
return;
message=message.split(" ");
if(message[0].substr(0,1)==":") {
prefix=message.shift();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment