Skip to content
Snippets Groups Projects
Commit 0fe99ca2 authored by cyan's avatar cyan
Browse files

* Revert back to the old method of handling modes, for now.

parent cc0eb13c
No related branches found
No related tags found
No related merge requests found
...@@ -220,14 +220,14 @@ function Channel_occupants() { ...@@ -220,14 +220,14 @@ function Channel_occupants() {
// Yay, version 3.0 of this.set_chanmode(), eradicates any global variables. // Yay, version 3.0 of this.set_chanmode(), eradicates any global variables.
function ChanMode(chan,user) { function ChanMode(chan,user) {
this.tmplist = new Array; this.tmplist = new Object;
this.tmplist[CHANMODE_OP] = new Object; this.tmplist[CHANMODE_OP] = new Array;
this.tmplist[CHANMODE_OP][false] = new Array; //deop this.tmplist[CHANMODE_OP][false] = new Array; //deop
this.tmplist[CHANMODE_OP][true] = new Array; //op this.tmplist[CHANMODE_OP][true] = new Array; //op
this.tmplist[CHANMODE_VOICE] = new Object; this.tmplist[CHANMODE_VOICE] = new Array;
this.tmplist[CHANMODE_VOICE][false] = new Array; //devoice this.tmplist[CHANMODE_VOICE][false] = new Array; //devoice
this.tmplist[CHANMODE_VOICE][true] = new Array; //voice this.tmplist[CHANMODE_VOICE][true] = new Array; //voice
this.tmplist[CHANMODE_BAN] = new Object; this.tmplist[CHANMODE_BAN] = new Array;
this.tmplist[CHANMODE_BAN][false] = new Array; //unban this.tmplist[CHANMODE_BAN][false] = new Array; //unban
this.tmplist[CHANMODE_BAN][true] = new Array; //ban this.tmplist[CHANMODE_BAN][true] = new Array; //ban
this.state_arg = new Object; this.state_arg = new Object;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment