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; return;
} }
options = options || {}; if (!options) {
options.max_age = options.maxAge || 0; options = { validate: null };
options.max_uses = options.maxUses || 0; } else {
options.temporary = options.temporary || false; options.max_age = options.maxAge || 0;
options.xkcdpass = options.xkcd || false; options.max_uses = options.maxUses || 0;
options.temporary = options.temporary || false;
options.xkcdpass = options.xkcd || false;
}
var epoint; var epoint;
if (chanServ instanceof Channel) { if (chanServ instanceof Channel) {

View File

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