Fixed invite

This commit is contained in:
hydrabolt
2015-11-05 18:44:07 +00:00
parent f6dfea5abd
commit 5dfe7cbf79
2 changed files with 16 additions and 10 deletions

View File

@@ -644,11 +644,14 @@ var InternalClient = (function () {
return;
}
options = options || {};
options.max_age = options.maxAge || 0;
options.max_uses = options.maxUses || 0;
options.temporary = options.temporary || false;
options.xkcdpass = options.xkcd || false;
if (!options) {
options = { validate: null };
} else {
options.max_age = options.maxAge || 0;
options.max_uses = options.maxUses || 0;
options.temporary = options.temporary || false;
options.xkcdpass = options.xkcd || false;
}
var epoint;
if (chanServ instanceof Channel) {

View File

@@ -684,11 +684,14 @@ class InternalClient {
return;
}
options = options || {};
options.max_age = options.maxAge || 0;
options.max_uses = options.maxUses || 0;
options.temporary = options.temporary || false;
options.xkcdpass = options.xkcd || false;
if(!options){
options = {validate:null};
}else{
options.max_age = options.maxAge || 0;
options.max_uses = options.maxUses || 0;
options.temporary = options.temporary || false;
options.xkcdpass = options.xkcd || false;
}
var epoint;
if(chanServ instanceof Channel){