Skip to content
Snippets Groups Projects
Commit 4b48688e authored by mcmlxxix's avatar mcmlxxix
Browse files

fix typos (per rfrederick)

parent 05b679ed
Branches
Tags
No related merge requests found
......@@ -53,7 +53,7 @@ for (cmdarg=0;cmdarg<argc;cmdarg++) {
var config = new File(system.ctrl_dir + config_filename);
function init() {
load("ircbot_functions.js");
load("load/ircbot_functions.js");
if (!config.open("r")) {
exit("Couldn't open config file!");
......@@ -77,7 +77,7 @@ function init() {
config.close();
load("ircbot_commands.js");
load("load/ircbot_commands.js");
}
function init_servers(config) {
......@@ -259,7 +259,7 @@ function main() {
var next_output=srv.buffers.shift();
if(!srv.sock.write(next_output.buffer.shift())) {
srv.sock.close();
src.sock=0;
srv.sock=0;
continue;
}
if(next_output.buffer.length) srv.buffers.push(next_output);
......@@ -286,7 +286,7 @@ function main() {
var srv=Bot_Servers[socks[s].srv];
if(srv.sock && (!srv.sock.is_connected)) {
srv.sock.close();
src.sock=0;
srv.sock=0;
}
if (srv.sock && srv.sock.poll(0.1) &&
(cmdline=srv.sock.recvline(4096,0))) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment