|
|
@ -224,8 +224,9 @@ commands.RM_OWNERS = function (meta, args) {
|
|
|
|
changed = true;
|
|
|
|
changed = true;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// XXX RESTRICT only owned channels can be restricted
|
|
|
|
if (meta.owners.length === 0 && meta.restricted) {
|
|
|
|
// drop the restricted flag if there are no owners
|
|
|
|
meta.restricted = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return changed;
|
|
|
|
return changed;
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -305,8 +306,9 @@ commands.RESET_OWNERS = function (meta, args) {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// XXX RESTRICT only owned channels can be restricted
|
|
|
|
if (meta.owners.length === 0 && meta.restricted) {
|
|
|
|
// drop the restricted flag if there are no owners
|
|
|
|
meta.restricted = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|