Skip to content
Snippets Groups Projects
Commit 2a78230c authored by cyan's avatar cyan
Browse files

* Fix the Object/Array bug once and for all. Argh.

parent f78ab702
No related branches found
No related tags found
No related merge requests found
......@@ -356,21 +356,18 @@ function IRCClient_set_chanmode(chan,modeline,bounce_modes) {
// side of the network sync.
if (bounce_modes) {
for (cm in MODE) {
if (MODE[cm].state && (chan.mode&cm) &&
!(cmode.addbits&cm)) {
if (MODE[cm].state && (chan.mode&cm) && !(cmode.addbits&cm)) {
cmode.delbits |= cm;
} else if (MODE[cm].list && MODE[cm].isnick) {
for (member in chan.modelist[cm]) {
cmode.delmodes += MODE[cm].modechar;
cmode.delmodeargs += " " +
chan.modelist[cm][member].nick;
cmode.delmodeargs += " " + chan.modelist[cm][member].nick;
delete chan.modelist[cm][member];
}
} else if (MODE[cm].list && !MODE[cm].isnick) {
for (ban in chan.modelist[cm]) {
cmode.delmodes += MODE[cm].modechar;
cmode.delmodeargs += " " +
chan.modelist[cm][ban];
cmode.delmodeargs += " " + chan.modelist[cm][ban];
delete chan.modelist[cm][ban];
delete chan.bantime[ban];
delete chan.bancreator[ban];
......
......@@ -822,12 +822,6 @@ function Server_Work() {
chan = Channels[cn_tuc];
chan.nam = cmd[2];
chan.created = parseInt(cmd[1]);
chan.topic = "";
chan.users = new Object;
chan.modelist[CHANMODE_BAN] = new Object;
chan.modelist[CHANMODE_VOICE] = new Object;
chan.modelist[CHANMODE_OP] = new Object;
chan.mode = CHANMODE_NONE;
}
if (cmd[3]) {
......
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