From 0fe99ca2ea81d61e4a4a3de086e70137ac366ec9 Mon Sep 17 00:00:00 2001
From: cyan <>
Date: Sun, 23 Jul 2006 07:52:27 +0000
Subject: [PATCH] * Revert back to the old method of handling modes, for now.

---
 exec/load/ircd_channel.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/exec/load/ircd_channel.js b/exec/load/ircd_channel.js
index 33e01bf973..302f84dc55 100644
--- a/exec/load/ircd_channel.js
+++ b/exec/load/ircd_channel.js
@@ -220,14 +220,14 @@ function Channel_occupants() {
 
 // Yay, version 3.0 of this.set_chanmode(), eradicates any global variables.
 function ChanMode(chan,user) {
-	this.tmplist = new Array;
-	this.tmplist[CHANMODE_OP] = new Object;
+	this.tmplist = new Object;
+	this.tmplist[CHANMODE_OP] = new Array;
 	this.tmplist[CHANMODE_OP][false] = new Array; //deop
 	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][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][true] = new Array; //ban
 	this.state_arg = new Object;
-- 
GitLab