Skip to content

Commit

Permalink
fix unban requestse
Browse files Browse the repository at this point in the history
  • Loading branch information
lluisd committed Oct 20, 2024
1 parent c2f0ba9 commit b7aa8d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/helper.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const config = require("../config");
function isVip(context) {
return context['vip'] || context.badges.vip
return context['vip'] || (context.badges && context.badges.vip)
}

function isMod(context) {
Expand Down

0 comments on commit b7aa8d4

Please sign in to comment.