From fab78019ea91a88042ff67898905722b43c920c8 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Sun, 14 Jul 2013 21:00:38 -0400 Subject: [PATCH] (Hopefully) fix a weird channel unload bug --- server.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index a2997403..9a6cf4a3 100644 --- a/server.js +++ b/server.js @@ -206,8 +206,12 @@ exports.createChannel = function (name) { exports.getOrCreateChannel = function (name) { var chan = exports.getChannel(name); - if(chan !== undefined) + if(chan !== undefined && chan.name !== undefined) return chan; + else if(chan !== undefined && chan.name === undefined) { + Logger.errlog.log("Empty channel still loaded: ", name); + delete exports.channels[name]; + } return exports.createChannel(name); }