This commit is contained in:
calzoneman 2013-10-12 19:44:36 -05:00
parent 6c7566e790
commit 8c80088192
3 changed files with 5 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Sat Oct 12 19:43 2013 CDT
* lib/user.js: Fix jumpTo kick bug
* lib/api.js: Fix unloaded channel API listing bug
Sat Oct 12 19:02 2013 CDT Sat Oct 12 19:02 2013 CDT
* lib/chatcommand.js: Fix poll import * lib/chatcommand.js: Fix poll import

View file

@ -74,7 +74,7 @@ module.exports = function (Server) {
loaded: false loaded: false
}; };
if(Server.channelLoaded(name)) if(Server.isChannelLoaded(name))
data = getChannelData(Server.getChannel(name)); data = getChannelData(Server.getChannel(name));
res.type("application/json"); res.type("application/json");

View file

@ -285,7 +285,6 @@ User.prototype.initCallbacks = function () {
}); });
self.socket.on("jumpTo", function (data) { self.socket.on("jumpTo", function (data) {
data = (typeof data !== "object") ? {} : data;
if (self.inChannel()) { if (self.inChannel()) {
self.channel.tryJumpTo(self, data); self.channel.tryJumpTo(self, data);
} }