Fix potential error with webhook messages

master
Dragory 2019-01-11 18:29:48 +02:00
parent 1fa45b9f8d
commit ee51e35f6f
1 changed files with 1 additions and 0 deletions

View File

@ -78,6 +78,7 @@ function postError(str) {
* @returns {boolean}
*/
function isStaff(member) {
if (!member) return false;
if (config.inboxServerPermission.length === 0) return true;
return config.inboxServerPermission.some(perm => {