Skip to content
Snippets Groups Projects
Commit 854959e4 authored by Randy Sommerfeld's avatar Randy Sommerfeld
Browse files

Fix unused/undeclared variables

parent 4bfde140
No related branches found
No related tags found
No related merge requests found
......@@ -453,16 +453,16 @@ function IRCClient_set_chanmode(chan,modeline,bounce_modes) {
}
for (i in cmode.tmplist[CHANMODE_BAN][false]) { // -b
for (ban in chan.modelist[CHANMODE_BAN]) {
for (j in chan.modelist[CHANMODE_BAN]) {
if ( cmode.tmplist[CHANMODE_BAN][false][i].toUpperCase()
== chan.modelist[CHANMODE_BAN][ban].toUpperCase()
== chan.modelist[CHANMODE_BAN][j].toUpperCase()
) {
cmode.delmodes += "b";
cmode.delmodeargs += " " +
cmode.tmplist[CHANMODE_BAN][false][i];
delete chan.modelist[CHANMODE_BAN][ban];
delete chan.bantime[ban];
delete chan.bancreator[ban];
delete chan.modelist[CHANMODE_BAN][j];
delete chan.bantime[j];
delete chan.bancreator[j];
}
}
}
......
......@@ -277,7 +277,7 @@ function Server_Work(cmdline) {
this.hostname,
p[0]
));
ThisOrigin.quit(p[0]);
origin.quit(p[0]);
break;
case "INFO":
if (!p[0] || origin.server)
......@@ -1118,7 +1118,7 @@ function Server_Work(cmdline) {
if (!tmp)
break;
if (tmp == -1) {
ThisOrigin.numeric351();
origin.numeric351();
break;
}
tmp.rawout(format(
......
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