Validate invite if possible

This commit is contained in:
abalabahaha
2016-01-03 11:14:17 -08:00
parent 718f0b9543
commit 2a00064646
4 changed files with 17 additions and 6 deletions

View File

@@ -10,7 +10,7 @@ var Invite = (function () {
this.maxAge = data.max_age;
this.code = data.code;
if (data.chan) {
if (chan) {
this.channel = chan;
this.server = chan.server;
} else {